7800-devtools / 7800basic

a BASIC-like language for creating games that run on the Atari 7800 console.
Other
23 stars 3 forks source link

memset doesn't work with constants #21

Open kdgarris opened 3 months ago

kdgarris commented 3 months ago

Using a constant as the value to set with memset does not seem to work. E.g. I have a const "blank_tile" set to 32 at the beginning of my code, and when I try to use it like this:

memset screendata blank_tile 240

It produces the following assembly

`.L01636 ;; memset screendata blank_tile 240

ldy #240 lda #-1`