Appy/testsrc/fmt.s

28 lines
606 B
ArmAsm
Raw Normal View History

2022-07-04 00:50:56 +00:00
* formatting test
2022-07-04 12:10:56 +00:00
org $300 ; start
2022-07-04 00:50:56 +00:00
2022-07-04 12:10:56 +00:00
main nop
* what about this
2022-07-04 00:50:56 +00:00
2022-07-04 12:10:56 +00:00
; and this
2022-07-04 00:50:56 +00:00
2022-07-04 12:10:56 +00:00
sta :jo+1
2022-07-04 00:50:56 +00:00
2023-02-11 15:01:48 +00:00
:jo lda $400
2022-07-04 12:10:56 +00:00
lda $400
rts
2022-07-04 00:50:56 +00:00
2022-07-04 12:10:56 +00:00
** 24 (bit) hex to 8 (nibble) / 4 byte BCD
** 24 (bit) hex to
HEXDEC mx %11
LDA #0 ; Ensure the result is clear
STA DEC8+0
STA DEC8+1
STA DEC8+2
STA DEC8+3
2023-02-11 15:01:48 +00:00
ReallyThisisaLoooooongLabelwith stal $e12000,x ; look at this long line
2022-07-09 01:48:28 +00:00
* TABS....
* $D5 $0008 sequence [Application Specific]
2023-02-11 15:01:48 +00:00
DEC8 ds 24