lwasm, like most 6809 assemblers, ignores everything
after a space, believing it is comments.
The next version of lwasm will have a pragma to allow
spaces and instead require a semicolon for comments.
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
nmi_handler:
SAM_KERNEL
- lds #istack_top - 2 ; We aren't coming back so this is ok
+ lds #istack_top-2 ; We aren't coming back so this is ok
jsr map_kernel
ldx #nmimsg
jsr outstring
; and just leave alone.
;
start:
- ldd #'B'*256 + 'O'
+ ldd #'B'*256+'O'
std 0x0200
- ldd #'O' * 256 + 'T'
+ ldd #'O'*256+'T'
std 0x0202
- ldd #':' * 256 + ' '
+ ldd #':'*256+' '
std 0x0204
tfr s,u ; Save old stack
lds #$FE00 ; Point the stack somewhere clear of
tfr s,u ; u holds our frame pointer to throw
bsr waitreq ; an exception
ldx #_si_dcb
- ldy #_si_dcb + 16 ; length word
+ ldy #_si_dcb+16 ; length word
bita #0x08 ; check CMD asserted
bne si_busfailw
lda $FF70
tfr s,u ; u holds our frame pointer to throw
bsr waitreq ; an exception
ldx #_si_dcb
- ldy _si_dcb + 16 ; length word
+ ldy _si_dcb+16 ; length word
bita #0x08 ; check CMD asserted
bne si_busfailw
lda ,x+
pshs y,dp
lda #0xFF
tfr a,dp
- lda _blk_op + 2
+ lda _blk_op+2
beq rdspi
jsr map_process_always
rdspi: ldx _blk_op
pshs y,dp
lda #0xFF
tfr a,dp
- lda _blk_op + 2
+ lda _blk_op+2
beq wrspi
jsr map_process_always
wrspi: ldx _blk_op