asar
asar copied to clipboard
(Now) official repository of the SNES assembler Asar, originally created by Alcaro
using asar 1.91 with default settings without rom: ``` lorom check bankcross off org $808000 spcblock $5000 nspc ; should output 02 00 00 50 01 02 but instead outputs...
``` [17:29:39] .rb as !a = 1 while !a = 1 endif [17:29:40] Error: you caused a segfault in asar. good job [17:29:42] what? [20:04:25] !rb as while 1 =...
``` [19:06:36] !rb as2 a = -1 dd a [19:06:37] 00 80 00 00 [19:08:43] !rb as2 a = -2 dd a [19:08:43] FE FF FF 00 [19:08:52] ??? [19:11:33]...
``` !rb as2 e = 1 struct aaaaa if e endif endstruct ``` this returns: ``` Errors occurred while assembling. :4: error: (Einvalid_label_name): Invalid label name. in block: [if e]...
pad $010000 does nothing (applies to both 1.9 and 2) should be a 'doesn't map to rom' error
From Yoshifanatic's Discord server: > Hey, something I just noticed, but asar 1.91 gives me error "Eno_labels_here" when I do this. This setup with incbin offsets allows me to handle...
The invalid opcode `stx $1234,y` is silently assembled as` stz $1234,x` instead of throwing an error
``` org $0000 norom macro Foo() print "foo" db $00 endmacro namespace Private Random: db $01 macro Bar() print "bar" db $02 endmacro namespace off %Foo() dw Private_Random %Private_Bar() ```...
``` [19:41:48] !rb as2 db (1 || 1) [19:41:49] 01 [19:43:07] !rb as2 assert (1||1) [19:43:07] (no output) [19:41:44] !rb as2 assert (1 || 1) [19:41:44] Errors occurred while assembling....