2023-11-14 22:47:31 +01:00
|
|
|
%import textio
|
2023-11-30 22:12:13 +01:00
|
|
|
%import bmx
|
2023-11-28 22:50:30 +01:00
|
|
|
%zeropage basicsafe
|
2023-11-29 00:27:02 +01:00
|
|
|
%option no_sysinit
|
2023-11-24 21:26:34 +01:00
|
|
|
|
2023-10-15 22:44:34 +02:00
|
|
|
main {
|
2023-11-12 20:40:17 +01:00
|
|
|
sub start() {
|
2023-11-30 22:12:13 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2023-11-29 00:27:02 +01:00
|
|
|
}
|
2023-11-30 22:12:13 +01:00
|
|
|
txt.print("error: ")
|
|
|
|
txt.print(bmx.error_message)
|
|
|
|
txt.nl()
|
2023-11-14 18:23:37 +01:00
|
|
|
}
|
2023-10-03 22:54:28 +02:00
|
|
|
}
|