uli / basicengine-firmware

BASIC Engine Firmware
78 stars 16 forks source link

SAVE BG 0 TO "filename.bg" is returning a syntax error (exp numeric expr) #34

Closed bitartrate closed 4 years ago

bitartrate commented 4 years ago

SAVE BG 0 TO "filename.bg" is returning a syntax error (exp numeric expr) I defined BG 0 TILES 16,14 SIZE 16,16 I formed the expression: SAVE BG 0 to "filename.bg" TILES 16,14 SIZE 16,16 it then asks for a numeric expression after the SIZE attribute.

konimaru commented 4 years ago

The way the code is written now the command works as:

save bg "filename.bg" 0 to

IOW, parameters are grabbed in the wrong order.

konimaru commented 4 years ago

While looking at this I was wondering whether loading should be more like e.g.:

load bg 0 from "filename.bg"

Just a thought ...