Home » Archimedes archive » Acorn User » AU 1994-06.adf » !StarInfo_StarInfo » NCW/Regs
NCW/Regs
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1994-06.adf » !StarInfo_StarInfo |
Filename: | NCW/Regs |
Read OK: | ✔ |
File size: | 0DD4 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
TTL > Regs ; Name: Registers ; Purpose: Register aliases for AAsm ; Author: Nick Craig-Wood and Dave Lawrence ; Copyright: Intelcomm UK ; Date: September 1993 ;************************************************************************ ; Register names ;************************************************************************ r0 RN 0 r1 RN 1 r2 RN 2 r3 RN 3 r4 RN 4 r5 RN 5 r6 RN 6 r7 RN 7 r8 RN 8 r9 RN 9 r10 RN 10 r11 RN 11 r12 RN 12 r13 RN 13 r14 RN 14 r15 RN 15 r13_usr RN 13 r14_usr RN 14 r10_fiq RN 10 r11_fiq RN 11 r12_fiq RN 12 r13_fiq RN 13 r14_fiq RN 14 r13_irq RN 13 r14_irq RN 14 r13_svc RN 13 r14_svc RN 14 wp RN r12 sp RN r13 sp_irq RN r13_irq sp_svc RN r13_svc lr RN r14 lr_usr RN r14_usr lr_fiq RN r14_fiq lr_irq RN r14_irq lr_svc RN r14_svc pc RN r15 R0 RN 0 R1 RN 1 R2 RN 2 R3 RN 3 R4 RN 4 R5 RN 5 R6 RN 6 R7 RN 7 R8 RN 8 R9 RN 9 R10 RN 10 R11 RN 11 R12 RN 12 R13 RN 13 R14 RN 14 R15 RN 15 WP RN 12 SP RN 13 LR RN 14 PC RN 15 Xr0 RN 0 Xr1 RN 1 Xr2 RN 2 Xr3 RN 3 Xr4 RN 4 Xr5 RN 5 Xr6 RN 6 Xr7 RN 7 Xr8 RN 8 Xr9 RN 9 Xr10 RN 10 Xr11 RN 11 Xr12 RN 12 Xr13 RN 13 Xr14 RN 14 Xr15 RN 15 Xwp RN r12 Xsp RN r13 Xlr RN r14 Xpc RN r15 ^ 0, sp stacked_r0 # 4 stacked_r1 # 4 stacked_r2 # 4 stacked_r3 # 4 stacked_r4 # 4 stacked_r5 # 4 stacked_r6 # 4 stacked_r7 # 4 stacked_r8 # 4 stacked_r9 # 4 stacked_r10 # 4 stacked_r11 # 4 ;For C a1 RN 0 a2 RN 1 a3 RN 2 a4 RN 3 v1 RN 4 v2 RN 5 v3 RN 6 v4 RN 7 v5 RN 8 v6 RN 9 sl RN 10 fp RN 11 ip RN 12 ;sp RN 13 ;lr RN 14 ;pc RN 15 f0 FN 0 f1 FN 1 f2 FN 2 f3 FN 3 f4 FN 4 f5 FN 5 f6 FN 6 f7 FN 7 Bit_0 EQU 1 << 0 Bit_1 EQU 1 << 1 Bit_2 EQU 1 << 2 Bit_3 EQU 1 << 3 Bit_4 EQU 1 << 4 Bit_5 EQU 1 << 5 Bit_6 EQU 1 << 6 Bit_7 EQU 1 << 7 Bit_8 EQU 1 << 8 Bit_9 EQU 1 << 9 Bit_10 EQU 1 << 10 Bit_11 EQU 1 << 11 Bit_12 EQU 1 << 12 Bit_13 EQU 1 << 13 Bit_14 EQU 1 << 14 Bit_15 EQU 1 << 15 Bit_16 EQU 1 << 16 Bit_17 EQU 1 << 17 Bit_18 EQU 1 << 18 Bit_19 EQU 1 << 19 Bit_20 EQU 1 << 20 Bit_21 EQU 1 << 21 Bit_22 EQU 1 << 22 Bit_23 EQU 1 << 23 Bit_24 EQU 1 << 24 Bit_25 EQU 1 << 25 Bit_26 EQU 1 << 26 Bit_27 EQU 1 << 27 Bit_28 EQU 1 << 28 Bit_29 EQU 1 << 29 Bit_30 EQU 1 << 30 Bit_31 EQU 1 << 31 ;************************************************************************ ; Flag states ;************************************************************************ N_bit EQU 1 << 31 Z_bit EQU 1 << 30 C_bit EQU 1 << 29 V_bit EQU 1 << 28 I_bit EQU 1 << 27 F_bit EQU 1 << 26 XOS_bit EQU 1 << 17 ;************************************************************************ ; Processor modes ;************************************************************************ USR_mode EQU 0 FIQ_mode EQU 1 IRQ_mode EQU 2 SVC_mode EQU 3 ;************************************************************************ ;Here are some macros for setting the flags in certain ways ;************************************************************************ ;C=1 V=0 Z=0 N=0 MACRO $label SetC $label CMP PC,#0 MEND ;C=0 V=0 Z=0 N=0 MACRO $label ClearFlags $label CMN PC,#0 MEND MACRO $label ClearV $label ClearFlags MEND MACRO $label ClearC $label ClearFlags MEND MACRO $label ClearN $label ClearFlags MEND ;C=0 V=1 Z=0 N=1 MACRO $label SetV $label CMP PC,#&80000000 MEND ;C=0 V=0 Z=0 N=1 MACRO $label SetN $label CMN PC,#&80000000 MEND ;C=* V=* Z=1 N=0 MACRO $label SetZ $label TST PC,#0 MEND ;C=* V=* Z=0 N=0 MACRO $label ClearZ $label TEQ PC,#0 MEND ;************************************************************************ END
00000000 09 09 54 54 4c 09 3e 20 52 65 67 73 0a 0a 3b 20 |..TTL.> Regs..; | 00000010 20 20 20 20 20 4e 61 6d 65 3a 20 52 65 67 69 73 | Name: Regis| 00000020 74 65 72 73 0a 3b 20 20 20 50 75 72 70 6f 73 65 |ters.; Purpose| 00000030 3a 20 52 65 67 69 73 74 65 72 20 61 6c 69 61 73 |: Register alias| 00000040 65 73 20 66 6f 72 20 41 41 73 6d 0a 3b 20 20 20 |es for AAsm.; | 00000050 20 41 75 74 68 6f 72 3a 20 4e 69 63 6b 20 43 72 | Author: Nick Cr| 00000060 61 69 67 2d 57 6f 6f 64 20 61 6e 64 20 44 61 76 |aig-Wood and Dav| 00000070 65 20 4c 61 77 72 65 6e 63 65 0a 3b 20 43 6f 70 |e Lawrence.; Cop| 00000080 79 72 69 67 68 74 3a 20 49 6e 74 65 6c 63 6f 6d |yright: Intelcom| 00000090 6d 20 55 4b 0a 3b 20 20 20 20 20 20 44 61 74 65 |m UK.; Date| 000000a0 3a 20 53 65 70 74 65 6d 62 65 72 20 31 39 39 33 |: September 1993| 000000b0 0a 0a 3b 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |..;*************| 000000c0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000000f0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 3b 20 52 65 |***********.; Re| 00000100 67 69 73 74 65 72 20 6e 61 6d 65 73 0a 3b 2a 2a |gister names.;**| 00000110 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000150 2a 2a 2a 2a 2a 2a 0a 0a 72 30 09 52 4e 09 30 0a |******..r0.RN.0.| 00000160 72 31 09 52 4e 09 31 0a 72 32 09 52 4e 09 32 0a |r1.RN.1.r2.RN.2.| 00000170 72 33 09 52 4e 09 33 0a 72 34 09 52 4e 09 34 0a |r3.RN.3.r4.RN.4.| 00000180 72 35 09 52 4e 09 35 0a 72 36 09 52 4e 09 36 0a |r5.RN.5.r6.RN.6.| 00000190 72 37 09 52 4e 09 37 0a 72 38 09 52 4e 09 38 0a |r7.RN.7.r8.RN.8.| 000001a0 72 39 09 52 4e 09 39 0a 72 31 30 09 52 4e 09 31 |r9.RN.9.r10.RN.1| 000001b0 30 0a 72 31 31 09 52 4e 09 31 31 0a 72 31 32 09 |0.r11.RN.11.r12.| 000001c0 52 4e 09 31 32 0a 72 31 33 09 52 4e 09 31 33 0a |RN.12.r13.RN.13.| 000001d0 72 31 34 09 52 4e 09 31 34 0a 72 31 35 09 52 4e |r14.RN.14.r15.RN| 000001e0 09 31 35 0a 0a 72 31 33 5f 75 73 72 09 52 4e 09 |.15..r13_usr.RN.| 000001f0 31 33 0a 72 31 34 5f 75 73 72 09 52 4e 09 31 34 |13.r14_usr.RN.14| 00000200 0a 0a 72 31 30 5f 66 69 71 09 52 4e 09 31 30 0a |..r10_fiq.RN.10.| 00000210 72 31 31 5f 66 69 71 09 52 4e 09 31 31 0a 72 31 |r11_fiq.RN.11.r1| 00000220 32 5f 66 69 71 09 52 4e 09 31 32 0a 72 31 33 5f |2_fiq.RN.12.r13_| 00000230 66 69 71 09 52 4e 09 31 33 0a 72 31 34 5f 66 69 |fiq.RN.13.r14_fi| 00000240 71 09 52 4e 09 31 34 0a 0a 72 31 33 5f 69 72 71 |q.RN.14..r13_irq| 00000250 09 52 4e 09 31 33 0a 72 31 34 5f 69 72 71 09 52 |.RN.13.r14_irq.R| 00000260 4e 09 31 34 0a 0a 72 31 33 5f 73 76 63 09 52 4e |N.14..r13_svc.RN| 00000270 09 31 33 0a 72 31 34 5f 73 76 63 09 52 4e 09 31 |.13.r14_svc.RN.1| 00000280 34 0a 0a 77 70 09 52 4e 09 72 31 32 0a 0a 73 70 |4..wp.RN.r12..sp| 00000290 09 52 4e 09 72 31 33 0a 73 70 5f 69 72 71 09 52 |.RN.r13.sp_irq.R| 000002a0 4e 09 72 31 33 5f 69 72 71 0a 73 70 5f 73 76 63 |N.r13_irq.sp_svc| 000002b0 09 52 4e 09 72 31 33 5f 73 76 63 0a 0a 6c 72 09 |.RN.r13_svc..lr.| 000002c0 52 4e 09 72 31 34 0a 6c 72 5f 75 73 72 09 52 4e |RN.r14.lr_usr.RN| 000002d0 09 72 31 34 5f 75 73 72 0a 6c 72 5f 66 69 71 09 |.r14_usr.lr_fiq.| 000002e0 52 4e 09 72 31 34 5f 66 69 71 0a 6c 72 5f 69 72 |RN.r14_fiq.lr_ir| 000002f0 71 09 52 4e 09 72 31 34 5f 69 72 71 0a 6c 72 5f |q.RN.r14_irq.lr_| 00000300 73 76 63 09 52 4e 09 72 31 34 5f 73 76 63 0a 0a |svc.RN.r14_svc..| 00000310 70 63 09 52 4e 09 72 31 35 0a 0a 0a 52 30 09 52 |pc.RN.r15...R0.R| 00000320 4e 09 30 0a 52 31 09 52 4e 09 31 0a 52 32 09 52 |N.0.R1.RN.1.R2.R| 00000330 4e 09 32 0a 52 33 09 52 4e 09 33 0a 52 34 09 52 |N.2.R3.RN.3.R4.R| 00000340 4e 09 34 0a 52 35 09 52 4e 09 35 0a 52 36 09 52 |N.4.R5.RN.5.R6.R| 00000350 4e 09 36 0a 52 37 09 52 4e 09 37 0a 52 38 09 52 |N.6.R7.RN.7.R8.R| 00000360 4e 09 38 0a 52 39 09 52 4e 09 39 0a 52 31 30 09 |N.8.R9.RN.9.R10.| 00000370 52 4e 09 31 30 0a 52 31 31 09 52 4e 09 31 31 0a |RN.10.R11.RN.11.| 00000380 52 31 32 09 52 4e 09 31 32 0a 52 31 33 09 52 4e |R12.RN.12.R13.RN| 00000390 09 31 33 0a 52 31 34 09 52 4e 09 31 34 0a 52 31 |.13.R14.RN.14.R1| 000003a0 35 09 52 4e 09 31 35 0a 0a 57 50 09 52 4e 09 31 |5.RN.15..WP.RN.1| 000003b0 32 0a 53 50 09 52 4e 09 31 33 0a 4c 52 09 52 4e |2.SP.RN.13.LR.RN| 000003c0 09 31 34 0a 50 43 09 52 4e 09 31 35 0a 0a 58 72 |.14.PC.RN.15..Xr| 000003d0 30 09 52 4e 09 30 0a 58 72 31 09 52 4e 09 31 0a |0.RN.0.Xr1.RN.1.| 000003e0 58 72 32 09 52 4e 09 32 0a 58 72 33 09 52 4e 09 |Xr2.RN.2.Xr3.RN.| 000003f0 33 0a 58 72 34 09 52 4e 09 34 0a 58 72 35 09 52 |3.Xr4.RN.4.Xr5.R| 00000400 4e 09 35 0a 58 72 36 09 52 4e 09 36 0a 58 72 37 |N.5.Xr6.RN.6.Xr7| 00000410 09 52 4e 09 37 0a 58 72 38 09 52 4e 09 38 0a 58 |.RN.7.Xr8.RN.8.X| 00000420 72 39 09 52 4e 09 39 0a 58 72 31 30 09 52 4e 09 |r9.RN.9.Xr10.RN.| 00000430 31 30 0a 58 72 31 31 09 52 4e 09 31 31 0a 58 72 |10.Xr11.RN.11.Xr| 00000440 31 32 09 52 4e 09 31 32 0a 58 72 31 33 09 52 4e |12.RN.12.Xr13.RN| 00000450 09 31 33 0a 58 72 31 34 09 52 4e 09 31 34 0a 58 |.13.Xr14.RN.14.X| 00000460 72 31 35 09 52 4e 09 31 35 0a 58 77 70 09 52 4e |r15.RN.15.Xwp.RN| 00000470 09 72 31 32 0a 58 73 70 09 52 4e 09 72 31 33 0a |.r12.Xsp.RN.r13.| 00000480 58 6c 72 09 52 4e 09 72 31 34 0a 58 70 63 09 52 |Xlr.RN.r14.Xpc.R| 00000490 4e 09 72 31 35 0a 0a 09 09 5e 09 30 2c 20 73 70 |N.r15....^.0, sp| 000004a0 0a 73 74 61 63 6b 65 64 5f 72 30 09 23 09 34 0a |.stacked_r0.#.4.| 000004b0 73 74 61 63 6b 65 64 5f 72 31 09 23 09 34 0a 73 |stacked_r1.#.4.s| 000004c0 74 61 63 6b 65 64 5f 72 32 09 23 09 34 0a 73 74 |tacked_r2.#.4.st| 000004d0 61 63 6b 65 64 5f 72 33 09 23 09 34 0a 73 74 61 |acked_r3.#.4.sta| 000004e0 63 6b 65 64 5f 72 34 09 23 09 34 0a 73 74 61 63 |cked_r4.#.4.stac| 000004f0 6b 65 64 5f 72 35 09 23 09 34 0a 73 74 61 63 6b |ked_r5.#.4.stack| 00000500 65 64 5f 72 36 09 23 09 34 0a 73 74 61 63 6b 65 |ed_r6.#.4.stacke| 00000510 64 5f 72 37 09 23 09 34 0a 73 74 61 63 6b 65 64 |d_r7.#.4.stacked| 00000520 5f 72 38 09 23 09 34 0a 73 74 61 63 6b 65 64 5f |_r8.#.4.stacked_| 00000530 72 39 09 23 09 34 0a 73 74 61 63 6b 65 64 5f 72 |r9.#.4.stacked_r| 00000540 31 30 09 23 09 34 0a 73 74 61 63 6b 65 64 5f 72 |10.#.4.stacked_r| 00000550 31 31 09 23 09 34 0a 0a 3b 46 6f 72 20 43 0a 0a |11.#.4..;For C..| 00000560 61 31 09 52 4e 09 30 0a 61 32 09 52 4e 09 31 0a |a1.RN.0.a2.RN.1.| 00000570 61 33 09 52 4e 09 32 0a 61 34 09 52 4e 09 33 0a |a3.RN.2.a4.RN.3.| 00000580 76 31 09 52 4e 09 34 0a 76 32 09 52 4e 09 35 0a |v1.RN.4.v2.RN.5.| 00000590 76 33 09 52 4e 09 36 0a 76 34 09 52 4e 09 37 0a |v3.RN.6.v4.RN.7.| 000005a0 76 35 09 52 4e 09 38 0a 76 36 09 52 4e 09 39 0a |v5.RN.8.v6.RN.9.| 000005b0 73 6c 09 52 4e 09 31 30 0a 66 70 09 52 4e 09 31 |sl.RN.10.fp.RN.1| 000005c0 31 0a 69 70 09 52 4e 09 31 32 0a 3b 73 70 09 52 |1.ip.RN.12.;sp.R| 000005d0 4e 09 31 33 0a 3b 6c 72 09 52 4e 09 31 34 0a 3b |N.13.;lr.RN.14.;| 000005e0 70 63 09 52 4e 09 31 35 0a 0a 66 30 09 46 4e 09 |pc.RN.15..f0.FN.| 000005f0 30 0a 66 31 09 46 4e 09 31 0a 66 32 09 46 4e 09 |0.f1.FN.1.f2.FN.| 00000600 32 0a 66 33 09 46 4e 09 33 0a 66 34 09 46 4e 09 |2.f3.FN.3.f4.FN.| 00000610 34 0a 66 35 09 46 4e 09 35 0a 66 36 09 46 4e 09 |4.f5.FN.5.f6.FN.| 00000620 36 0a 66 37 09 46 4e 09 37 0a 0a 0a 42 69 74 5f |6.f7.FN.7...Bit_| 00000630 30 09 09 45 51 55 09 31 20 3c 3c 20 30 0a 42 69 |0..EQU.1 << 0.Bi| 00000640 74 5f 31 09 09 45 51 55 09 31 20 3c 3c 20 31 0a |t_1..EQU.1 << 1.| 00000650 42 69 74 5f 32 09 09 45 51 55 09 31 20 3c 3c 20 |Bit_2..EQU.1 << | 00000660 32 0a 42 69 74 5f 33 09 09 45 51 55 09 31 20 3c |2.Bit_3..EQU.1 <| 00000670 3c 20 33 0a 42 69 74 5f 34 09 09 45 51 55 09 31 |< 3.Bit_4..EQU.1| 00000680 20 3c 3c 20 34 0a 42 69 74 5f 35 09 09 45 51 55 | << 4.Bit_5..EQU| 00000690 09 31 20 3c 3c 20 35 0a 42 69 74 5f 36 09 09 45 |.1 << 5.Bit_6..E| 000006a0 51 55 09 31 20 3c 3c 20 36 0a 42 69 74 5f 37 09 |QU.1 << 6.Bit_7.| 000006b0 09 45 51 55 09 31 20 3c 3c 20 37 0a 42 69 74 5f |.EQU.1 << 7.Bit_| 000006c0 38 09 09 45 51 55 09 31 20 3c 3c 20 38 0a 42 69 |8..EQU.1 << 8.Bi| 000006d0 74 5f 39 09 09 45 51 55 09 31 20 3c 3c 20 39 0a |t_9..EQU.1 << 9.| 000006e0 42 69 74 5f 31 30 09 09 45 51 55 09 31 20 3c 3c |Bit_10..EQU.1 <<| 000006f0 20 31 30 0a 42 69 74 5f 31 31 09 09 45 51 55 09 | 10.Bit_11..EQU.| 00000700 31 20 3c 3c 20 31 31 0a 42 69 74 5f 31 32 09 09 |1 << 11.Bit_12..| 00000710 45 51 55 09 31 20 3c 3c 20 31 32 0a 42 69 74 5f |EQU.1 << 12.Bit_| 00000720 31 33 09 09 45 51 55 09 31 20 3c 3c 20 31 33 0a |13..EQU.1 << 13.| 00000730 42 69 74 5f 31 34 09 09 45 51 55 09 31 20 3c 3c |Bit_14..EQU.1 <<| 00000740 20 31 34 0a 42 69 74 5f 31 35 09 09 45 51 55 09 | 14.Bit_15..EQU.| 00000750 31 20 3c 3c 20 31 35 0a 42 69 74 5f 31 36 09 09 |1 << 15.Bit_16..| 00000760 45 51 55 09 31 20 3c 3c 20 31 36 0a 42 69 74 5f |EQU.1 << 16.Bit_| 00000770 31 37 09 09 45 51 55 09 31 20 3c 3c 20 31 37 0a |17..EQU.1 << 17.| 00000780 42 69 74 5f 31 38 09 09 45 51 55 09 31 20 3c 3c |Bit_18..EQU.1 <<| 00000790 20 31 38 0a 42 69 74 5f 31 39 09 09 45 51 55 09 | 18.Bit_19..EQU.| 000007a0 31 20 3c 3c 20 31 39 0a 42 69 74 5f 32 30 09 09 |1 << 19.Bit_20..| 000007b0 45 51 55 09 31 20 3c 3c 20 32 30 0a 42 69 74 5f |EQU.1 << 20.Bit_| 000007c0 32 31 09 09 45 51 55 09 31 20 3c 3c 20 32 31 0a |21..EQU.1 << 21.| 000007d0 42 69 74 5f 32 32 09 09 45 51 55 09 31 20 3c 3c |Bit_22..EQU.1 <<| 000007e0 20 32 32 0a 42 69 74 5f 32 33 09 09 45 51 55 09 | 22.Bit_23..EQU.| 000007f0 31 20 3c 3c 20 32 33 0a 42 69 74 5f 32 34 09 09 |1 << 23.Bit_24..| 00000800 45 51 55 09 31 20 3c 3c 20 32 34 0a 42 69 74 5f |EQU.1 << 24.Bit_| 00000810 32 35 09 09 45 51 55 09 31 20 3c 3c 20 32 35 0a |25..EQU.1 << 25.| 00000820 42 69 74 5f 32 36 09 09 45 51 55 09 31 20 3c 3c |Bit_26..EQU.1 <<| 00000830 20 32 36 0a 42 69 74 5f 32 37 09 09 45 51 55 09 | 26.Bit_27..EQU.| 00000840 31 20 3c 3c 20 32 37 0a 42 69 74 5f 32 38 09 09 |1 << 27.Bit_28..| 00000850 45 51 55 09 31 20 3c 3c 20 32 38 0a 42 69 74 5f |EQU.1 << 28.Bit_| 00000860 32 39 09 09 45 51 55 09 31 20 3c 3c 20 32 39 0a |29..EQU.1 << 29.| 00000870 42 69 74 5f 33 30 09 09 45 51 55 09 31 20 3c 3c |Bit_30..EQU.1 <<| 00000880 20 33 30 0a 42 69 74 5f 33 31 09 09 45 51 55 09 | 30.Bit_31..EQU.| 00000890 31 20 3c 3c 20 33 31 0a 0a 3b 2a 2a 2a 2a 2a 2a |1 << 31..;******| 000008a0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 000008e0 2a 2a 0a 3b 20 46 6c 61 67 20 73 74 61 74 65 73 |**.; Flag states| 000008f0 0a 3b 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |.;**************| 00000900 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000930 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 0a 4e 5f 62 69 |**********..N_bi| 00000940 74 09 09 45 51 55 09 31 20 3c 3c 20 33 31 0a 5a |t..EQU.1 << 31.Z| 00000950 5f 62 69 74 09 09 45 51 55 09 31 20 3c 3c 20 33 |_bit..EQU.1 << 3| 00000960 30 0a 43 5f 62 69 74 09 09 45 51 55 09 31 20 3c |0.C_bit..EQU.1 <| 00000970 3c 20 32 39 0a 56 5f 62 69 74 09 09 45 51 55 09 |< 29.V_bit..EQU.| 00000980 31 20 3c 3c 20 32 38 0a 49 5f 62 69 74 09 09 45 |1 << 28.I_bit..E| 00000990 51 55 09 31 20 3c 3c 20 32 37 0a 46 5f 62 69 74 |QU.1 << 27.F_bit| 000009a0 09 09 45 51 55 09 31 20 3c 3c 20 32 36 0a 0a 58 |..EQU.1 << 26..X| 000009b0 4f 53 5f 62 69 74 09 09 45 51 55 09 31 20 3c 3c |OS_bit..EQU.1 <<| 000009c0 20 31 37 0a 0a 3b 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a | 17..;**********| 000009d0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000a00 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 3b |**************.;| 00000a10 20 50 72 6f 63 65 73 73 6f 72 20 6d 6f 64 65 73 | Processor modes| 00000a20 0a 3b 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |.;**************| 00000a30 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000a60 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 0a 55 53 52 5f |**********..USR_| 00000a70 6d 6f 64 65 09 45 51 55 09 30 0a 46 49 51 5f 6d |mode.EQU.0.FIQ_m| 00000a80 6f 64 65 09 45 51 55 09 31 0a 49 52 51 5f 6d 6f |ode.EQU.1.IRQ_mo| 00000a90 64 65 09 45 51 55 09 32 0a 53 56 43 5f 6d 6f 64 |de.EQU.2.SVC_mod| 00000aa0 65 09 45 51 55 09 33 0a 0a 3b 2a 2a 2a 2a 2a 2a |e.EQU.3..;******| 00000ab0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000af0 2a 2a 0a 3b 48 65 72 65 20 61 72 65 20 73 6f 6d |**.;Here are som| 00000b00 65 20 6d 61 63 72 6f 73 20 66 6f 72 20 73 65 74 |e macros for set| 00000b10 74 69 6e 67 20 74 68 65 20 66 6c 61 67 73 20 69 |ting the flags i| 00000b20 6e 20 63 65 72 74 61 69 6e 20 77 61 79 73 0a 3b |n certain ways.;| 00000b30 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000b70 2a 2a 2a 2a 2a 2a 2a 2a 0a 0a 3b 43 3d 31 20 56 |********..;C=1 V| 00000b80 3d 30 20 5a 3d 30 20 4e 3d 30 0a 09 4d 41 43 52 |=0 Z=0 N=0..MACR| 00000b90 4f 0a 24 6c 61 62 65 6c 09 53 65 74 43 0a 24 6c |O.$label.SetC.$l| 00000ba0 61 62 65 6c 09 43 4d 50 09 50 43 2c 23 30 0a 09 |abel.CMP.PC,#0..| 00000bb0 4d 45 4e 44 0a 0a 0a 3b 43 3d 30 20 56 3d 30 20 |MEND...;C=0 V=0 | 00000bc0 5a 3d 30 20 4e 3d 30 0a 09 4d 41 43 52 4f 0a 24 |Z=0 N=0..MACRO.$| 00000bd0 6c 61 62 65 6c 09 43 6c 65 61 72 46 6c 61 67 73 |label.ClearFlags| 00000be0 0a 24 6c 61 62 65 6c 09 43 4d 4e 09 50 43 2c 23 |.$label.CMN.PC,#| 00000bf0 30 0a 09 4d 45 4e 44 0a 0a 09 4d 41 43 52 4f 0a |0..MEND...MACRO.| 00000c00 24 6c 61 62 65 6c 09 43 6c 65 61 72 56 0a 24 6c |$label.ClearV.$l| 00000c10 61 62 65 6c 09 43 6c 65 61 72 46 6c 61 67 73 0a |abel.ClearFlags.| 00000c20 09 4d 45 4e 44 0a 0a 09 4d 41 43 52 4f 0a 24 6c |.MEND...MACRO.$l| 00000c30 61 62 65 6c 09 43 6c 65 61 72 43 0a 24 6c 61 62 |abel.ClearC.$lab| 00000c40 65 6c 09 43 6c 65 61 72 46 6c 61 67 73 0a 09 4d |el.ClearFlags..M| 00000c50 45 4e 44 0a 0a 09 4d 41 43 52 4f 0a 24 6c 61 62 |END...MACRO.$lab| 00000c60 65 6c 09 43 6c 65 61 72 4e 0a 24 6c 61 62 65 6c |el.ClearN.$label| 00000c70 09 43 6c 65 61 72 46 6c 61 67 73 0a 09 4d 45 4e |.ClearFlags..MEN| 00000c80 44 0a 0a 3b 43 3d 30 20 56 3d 31 20 5a 3d 30 20 |D..;C=0 V=1 Z=0 | 00000c90 4e 3d 31 0a 09 4d 41 43 52 4f 0a 24 6c 61 62 65 |N=1..MACRO.$labe| 00000ca0 6c 09 53 65 74 56 0a 24 6c 61 62 65 6c 09 43 4d |l.SetV.$label.CM| 00000cb0 50 09 50 43 2c 23 26 38 30 30 30 30 30 30 30 0a |P.PC,#&80000000.| 00000cc0 09 4d 45 4e 44 0a 0a 3b 43 3d 30 20 56 3d 30 20 |.MEND..;C=0 V=0 | 00000cd0 5a 3d 30 20 4e 3d 31 0a 09 4d 41 43 52 4f 0a 24 |Z=0 N=1..MACRO.$| 00000ce0 6c 61 62 65 6c 09 53 65 74 4e 0a 24 6c 61 62 65 |label.SetN.$labe| 00000cf0 6c 09 43 4d 4e 09 50 43 2c 23 26 38 30 30 30 30 |l.CMN.PC,#&80000| 00000d00 30 30 30 0a 09 4d 45 4e 44 0a 0a 3b 43 3d 2a 20 |000..MEND..;C=* | 00000d10 56 3d 2a 20 5a 3d 31 20 4e 3d 30 0a 09 4d 41 43 |V=* Z=1 N=0..MAC| 00000d20 52 4f 0a 24 6c 61 62 65 6c 09 53 65 74 5a 0a 24 |RO.$label.SetZ.$| 00000d30 6c 61 62 65 6c 09 54 53 54 09 50 43 2c 23 30 0a |label.TST.PC,#0.| 00000d40 09 4d 45 4e 44 0a 0a 3b 43 3d 2a 20 56 3d 2a 20 |.MEND..;C=* V=* | 00000d50 5a 3d 30 20 4e 3d 30 0a 09 4d 41 43 52 4f 0a 24 |Z=0 N=0..MACRO.$| 00000d60 6c 61 62 65 6c 09 43 6c 65 61 72 5a 0a 24 6c 61 |label.ClearZ.$la| 00000d70 62 65 6c 09 54 45 51 09 50 43 2c 23 30 0a 09 4d |bel.TEQ.PC,#0..M| 00000d80 45 4e 44 0a 0a 3b 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |END..;**********| 00000d90 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a |****************| * 00000dc0 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 09 |**************..| 00000dd0 45 4e 44 0a |END.| 00000dd4