From fefdbb5ad0dbec1397a2c559aaa59dbe0a2c0ca5 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Wed, 4 Jan 2017 13:53:30 -0500 Subject: [PATCH] label test. --- samples/labels.asm | 63 ++++++++++++++++++++++++++++++++++++ samples/labels.lst | 79 +++++++++++++++++++++++++++++++++++++++++++++ samples/labels.obj | Bin 0 -> 470 bytes 3 files changed, 142 insertions(+) create mode 100644 samples/labels.asm create mode 100644 samples/labels.lst create mode 100644 samples/labels.obj diff --git a/samples/labels.asm b/samples/labels.asm new file mode 100644 index 0000000..b1eee5b --- /dev/null +++ b/samples/labels.asm @@ -0,0 +1,63 @@ + ; + ; test labels + ; + + extern extern_label + + public public_label + public public_equ, public_gequ + +private_label +public_label + +public_equ equ $1234 +public_gequ gequ $1234 + +private_equ equ $1234 +private_gequ gequ $1234 + + globals on + + page0 + nop +page0_equ equ $1234 +page0_label + ends + + + code + nop +code_equ equ $1234 +code_label + ends + + data + nop +data_equ equ $1234 +data_label + ends + + udata + nop +udata_equ equ $1234 +udata_label + ends + + kdata + nop +kdata_equ equ $1234 +kdata_label + ends + +offset_s section offset $200 + nop +offset_equ equ * +offset_label + ends + +indir_s section indirect $200 + nop +indir_equ equ * +indir_label + ends + diff --git a/samples/labels.lst b/samples/labels.lst new file mode 100644 index 0000000..60367d6 --- /dev/null +++ b/samples/labels.lst @@ -0,0 +1,79 @@ + Wed Jan 4 2017 13:51 Page 1 + + + *************************************** + ** WDC 65C816 Macro Assembler ** + ** ** + ** Version 3.49.1- Feb 6 2006 ** + *************************************** + + 1 ; + 2 ; test labels + 3 ; + 4 + 5 extern extern_label + 6 + 7 public public_label + 8 public public_equ, public_gequ + 9 + 10 private_label + 11 public_label + 12 + 13 00001234 public_equ equ $1234 + 14 00001234 public_gequ gequ $1234 + 15 + 16 00001234 private_equ equ $1234 + 17 00001234 private_gequ gequ $1234 + 18 + 19 globals on + 20 + 21 page0 + 22 00:0000: EA nop + 23 00001234 page0_equ equ $1234 + 24 page0_label + 25 00:0001: ends + 26 + 27 + 28 code + 29 00:0000: EA nop + 30 00001234 code_equ equ $1234 + 31 code_label + 32 ends + 33 + 34 data + 35 00:0000: EA nop + 36 00001234 data_equ equ $1234 + 37 data_label + 38 ends + 39 + 40 udata + 41 00:0000: EA nop + 42 00001234 udata_equ equ $1234 + 43 udata_label + 44 ends + 45 + 46 kdata + 47 00:0000: EA nop + 48 00001234 kdata_equ equ $1234 + 49 kdata_label + 50 ends + 51 + 52 offset_s section offset $200 + Wed Jan 4 2017 13:51 Page 2 + + + 53 00:0200: EA nop + 54 00000201 offset_equ equ * + 55 offset_label + 56 00:0201: ends + 57 + 58 indir_s section indirect $200 + 59 00:0200: EA nop + 60 00000201 indir_equ equ * + 61 indir_label + 62 00:0201: ends + 63 + + + Lines assembled: 63 + Errors: 0 diff --git a/samples/labels.obj b/samples/labels.obj new file mode 100644 index 0000000000000000000000000000000000000000..9d35b8db32083aef97f696b2cd9fcbeab1f1d159 GIT binary patch literal 470 zcmZ9IK@Pz{6o&sd)7HWYr?3$T2e5Dg8;MQR>X6bXst0i+OGgnai3^x{<5AKy^Us%W z{=Uv)HeC>?-3Ktoi0pz^tAip*O;HWXbb|-c{h{qk_EEfsPbh$6^ohWYkJ|>CNKzL` z`jdjIu#h;}u5z`i%qgxADM9%z%a4{Q&17GvMZS!AFq}1wyTF^7L;XkAjCx=xS({<( zfa<|j?HT+OEz8V!Me|6!7el+2EIB1_gXiJB7=bhDh7!2%cp#2)&bHz3k9r_ZNZ+e) S1CwqNu_9;r+woEZc;^MQQ*5vR literal 0 HcmV?d00001