+/EE460N

computer architecture

git clone https://git.julia.blue/+/EE460N

Joseph RyanAdd tests4f87c13

master
436 B12 linesraw
1	;This program counts from 10 to 0
2	    .ORIG x3000       
3	    LEA R0, TEN        ;This instruction will be loaded into memory location x3000
4	    LDW R1, R0, #0
5	START    ADD R1, R1, #-1
6	    BRZ DONE
7	    BR START
8	                ;blank line
9	DONE    TRAP x25        ;The last executable instruction
10	TEN    .FILL x000A        ;This is 10 in 2's comp, hexadecimal
11	    .END            ;The pseudo-op, delimiting the source program
12