ncatelli / spasm

An experimental multi-target assembler.
Apache License 2.0
4 stars 0 forks source link

mos6502 backend errors with constant symbols with a value larger than one byte #90

Closed ncatelli closed 3 years ago

ncatelli commented 3 years ago

The following chunk of assembly will throw the an undefined backend error for a word constant while this backend should support these values.

.define word IO 0x6000

reset:
  lda 0xff
  sta 0x6002

loop:
  lda 0x01
  sta IO

  asl A
  sta IO
thread 'main' panicked at 'Backend only supports u8: passed Word(24576)', src/backends/mos6502/mod.rs:146:30
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ncatelli commented 3 years ago

Closing as this will be continued on #92