+/EE460N
computer architecture
git clone https://git.julia.blue/+/EE460N
c0e5108
master
1.orig x3000 2; store x1 at x4000 3add r0 r0 #1 4lea r1 loc 5ldw r2 r1 #0 6stw r0 r2 #0 7; sum xc000 to 0xc013 8add r0 r0 xb 9lshf r0 r0 #12 10lea r1 eof 11ldw r1 r1 #0 12loop ldb r2 r0 #0 13add r3 r3 r2 14add r0 r0 #1 15add r4 r0 r1 16brn loop 17; store sum at xc014 18stw r3 r0 #0 19; store sum at x0000 20stw r3 r5 #0 21; ; store sum at xc017 (unaligned) 22; add r0 r0 #3 23; stw r3 r0 #0 24; halt 25; ; store sum at x0001 (protection) 26; add r5 r5 #1 27; stw r3 r5 #0 28; halt 29; ; cursed opcodes (unused) 30; unused1 .fill xa000 31; unused2 .fill xb000 32; halt 33loc .fillx4000 34eof .fillx3fec 35.end