pkmnq — 7/18/2022, 10:51:31 AM

“subleq” https://jaredkrinke.itch.io/sic-1

♥ 2 ↩ 0 💬 2 comments

comments

nebulous:

huh

7/18/2022, 10:53:02 AM
pkmnq:
; The SIC-1 is an 8-bit computer with 256 bytes of memory.
; Programs are written in SIC-1 Assembly Language.
; Each instruction is 3 bytes, specified as follows:
;
;   subleq <A> <B> [<C>]
;
; A, B, and C are memory addresses (0 - 255) or labels.
;
; "subleq" subtracts the value at address B from the
; value at address A and stores the result at address A
; (i.e. mem[A] = mem[A] - mem[B]).
;
; If the result is <= 0, execution branches to address C.
;
; Note that if C is not specified, the address of the next
; instruction is used (in other words, the branch does
; nothing).
7/18/2022, 10:59:57 AM