ncatelli / spasm

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

mos6502 backend causes error when constant symbol is larger than one byte #91

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

Duplicate of #90 by mistake