2018-09-28 17:05:11 +00:00
|
|
|
; Copyright 2018 faddenSoft. All Rights Reserved.
|
|
|
|
; See the LICENSE.txt file for distribution terms (Apache 2.0).
|
|
|
|
;
|
|
|
|
; Assembler: Merlin 32
|
|
|
|
|
2019-12-30 22:09:18 +00:00
|
|
|
ORG $1000
|
|
|
|
|
|
|
|
bit dref+8
|
|
|
|
jsr cref+8
|
|
|
|
ds 16,$ea ;bunch of NOPs
|
2018-09-28 17:05:11 +00:00
|
|
|
rts
|
|
|
|
|
|
|
|
dfb $11 ;.dd1
|
|
|
|
dw $1122 ;.dd2
|
|
|
|
adr $112233 ;.dd3
|
|
|
|
adrl $11223344 ;.dd4
|
|
|
|
|
|
|
|
dfb $11 ;.dbd1
|
|
|
|
ddb $1122 ;.dbd2
|
|
|
|
dfb $11,$22,$33 ;.dbd3
|
|
|
|
dfb $11,$22,$33,$44 ;.dbd4
|
|
|
|
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 2 ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 3 ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 4 ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 5 ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 256 ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
|
|
|
|
2019-10-19 03:28:02 +00:00
|
|
|
ds 257,$cc ;.fill
|
2018-09-28 17:05:11 +00:00
|
|
|
|
2019-10-19 03:28:02 +00:00
|
|
|
hex 11 ;.bulk
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
hex 11223344556677889900 ;.bulk
|
2018-09-28 17:05:11 +00:00
|
|
|
dfb $80
|
2019-10-19 03:28:02 +00:00
|
|
|
hex 00112233445566778899aabbccddeeff ;4 lines .bulk
|
|
|
|
hex 00112233445566778899aabbccddeeff ;add a comment
|
2018-09-28 17:05:11 +00:00
|
|
|
hex 00112233445566778899aabbccddeeff
|
|
|
|
hex ffeeddccbbaa99887766554433221100
|
|
|
|
dfb $80
|
|
|
|
|
2019-10-19 03:28:02 +00:00
|
|
|
; align to 256-byte boundary
|
|
|
|
ds \,$aa ;.junk, align 256
|
|
|
|
dfb $81
|
|
|
|
ds 63,$00 ;.junk, align 64
|
|
|
|
dfb $81
|
|
|
|
ds 31,$ab ;.junk, align 32
|
|
|
|
hex 0000000000000001 ;.junk (should become .dense)
|
|
|
|
dfb $81
|
|
|
|
hex 1000000000000000 ;.junk (should become .dense)
|
|
|
|
dfb $81
|
|
|
|
hex dddd ;EDIT FILE: give this a bogus alignment
|
|
|
|
ds \,$00 ;.junk, align 256
|
2019-12-30 22:09:18 +00:00
|
|
|
|
|
|
|
; Check to see what splits a .fill block. Each 16-byte chunk has some sort
|
|
|
|
; of item added at +8. DO NOT format these; the goal is to check the behavior
|
|
|
|
; of the data analyzer.
|
|
|
|
ds 16,$82 ;EDIT: add no-op .ORG
|
|
|
|
ds 16,$83 ;EDIT: add .ORG that adjusts +16
|
|
|
|
ORG *+16
|
|
|
|
ds 16,$84 ;EDIT: add user label
|
|
|
|
dref ds 16,$85 ;has a data reference
|
|
|
|
ds 16,$86 ;EDIT: add a local variable table (may not split)
|
|
|
|
ds 16,$87 ;EDIT: add full-line comment
|
|
|
|
ds 16,$88 ;EDIT: add end-of-line comment (should not split)
|
|
|
|
ds 16,$89 ;EDIT: add note
|
|
|
|
ds 16,$8a ;EDIT: add visualization
|
|
|
|
cref ds 16,$8b ;has a code reference
|
|
|
|
ds 16,$8c ;EDIT: format byte as binary
|
2021-10-13 21:48:05 +00:00
|
|
|
|
|
|
|
; Some uninitialized data for the "uninit" op.
|
|
|
|
dfb $90
|
|
|
|
dw $9192
|
|
|
|
adr $939495
|
|
|
|
adrl $96979899
|
|
|
|
ds 1
|
|
|
|
ds 2
|
|
|
|
ds 3
|
|
|
|
ds 4
|
|
|
|
dfb $80
|
|
|
|
ds 5
|
|
|
|
dfb $80
|