Skip to content

Support Get/Put (image) #22

Open
Open

Description

@RetroNick2020

can you support the classic Get/Put image functions. please use the same format as AmigaBasic when storing the data into array.

Activity

  1. mdbergmann commented on Jan 28, 2026

    @mdbergmann
    Owner

    Do you have a documentation source where this is described?

  2. mdbergmann commented on Jan 28, 2026

    @mdbergmann
    Owner

    I have the AmigaBASIC DataBecker book, but couldn't find it.

  3. RetroNick2020 commented on Jan 28, 2026

    @RetroNick2020
    Author

    the bitplane data is in the format as the amiga hardware screens, just has a few header bits.

    //Amiga Basic BitMap header for PUT / GET Image functions
    ABBitMapHeader = Record
    Width : word;
    Height : word;
    BitPlanes : word;
    end;

    followed by bitplane data - standard format Bitplane0,Bitplane1,etc

    My code for creating this data outside of Amigabasic
    https://github.com/RetroNick2020/raster-master/blob/b9183034c8022efb7515aa9eff38e4c7bcf72460/rmamigarwxgf.pas#L46

    other code that might help if you are interested in how amigabasic handles vsprites and bobs
    https://github.com/RetroNick2020/Channel-Code/blob/master/AmigaBASIC/PutToObjects/puttoobjects.bas

  4. mdbergmann commented on Jan 28, 2026

    @mdbergmann
    Owner

    Hmm. It's still not fully clear to me what should be implemented.
    Where, how, what and in which context would it be used.
    Can you give an exhaustive example code?

  5. RetroNick2020 commented on Jan 28, 2026

    @RetroNick2020
    Author

    I think if you check the AmigaBasic manual (search its available in pdf) you can check the usage and examples there. it will probably give you a better idea or an alternative view on why its needed.

    But Get and Put are standard commands for displaying bitmaps. these exist in gwbasic,qbasic,amigabasic (and compatible amiga basics),qb64. they are very flexible commands. you can grab part of the screen/window contents and display in another part. you can save the contents to disk. you can load contents from disk. you can use these commands to create sprites for games. you can convert the image to array and store in data statements to create an executable with your image.

    Here is a little sokoban game that makes use of Put command
    https://github.com/RetroNick2020/raster-master/blob/main/Examples/Amiga%20HiSoft%20Basic/Sokoban/sokoban.bas

  6. mdbergmann commented on Jan 28, 2026

    @mdbergmann
    Owner

    OK, I'll check if I can get documentation on it.

  7. RetroNick2020 commented on Jan 29, 2026

    @RetroNick2020
    Author
  8. mdbergmann commented on Jan 29, 2026

    @mdbergmann
    Owner

    So, what's missing?
    We could also make this an include instead. Then it wouldn't require compiler and runtime changes. Then Get and Put would be subs instead of language keywords but effectively would do the same.

  9. RetroNick2020 commented on Jan 29, 2026

    @RetroNick2020
    Author

    it doesn't work the same way as traditional get and put. get should put the contents into an array. and put should paste the contents from the array to window (rastport). Put also has an additional mode settings such as pset,xor,or,and

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions