You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
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
Activity
mdbergmann commentedon Jan 28, 2026
Do you have a documentation source where this is described?
mdbergmann commentedon Jan 28, 2026
I have the AmigaBASIC DataBecker book, but couldn't find it.
RetroNick2020 commentedon Jan 28, 2026
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
mdbergmann commentedon Jan 28, 2026
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?
RetroNick2020 commentedon Jan 28, 2026
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
mdbergmann commentedon Jan 28, 2026
OK, I'll check if I can get documentation on it.
RetroNick2020 commentedon Jan 29, 2026
https://github.com/mdbergmann/ACEBasic/blob/master/examples/gfx/GetPut.b
this might be a good starting point.
mdbergmann commentedon Jan 29, 2026
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.
RetroNick2020 commentedon Jan 29, 2026
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