prog8/examples/test.p8

25 lines
616 B
Plaintext
Raw Normal View History

%import textio
%import bmx
2023-11-28 22:50:30 +01:00
%zeropage basicsafe
%option no_sysinit
main {
sub start() {
bmx.palette_buffer_ptr = memory("palette", 512, 0)
if bmx.open(8, "desertfish.bmx") {
if bmx.continue_load(0,0) {
uword offset = 10*320 + 100
bmx.width = 100
bmx.height = 150
if bmx.save(8, "@:stamp.bmx", 0, offset, 320) {
txt.print("save stamp ok\n")
return
}
}
}
txt.print("error: ")
txt.print(bmx.error_message)
txt.nl()
2023-11-14 18:23:37 +01:00
}
}