Skip to content

Instantly share code, notes, and snippets.

@vnkdj5
Created January 14, 2019 17:58
Show Gist options
  • Select an option

  • Save vnkdj5/f9a072cb441022425d8988abfa7471fc to your computer and use it in GitHub Desktop.

Select an option

Save vnkdj5/f9a072cb441022425d8988abfa7471fc to your computer and use it in GitHub Desktop.
Pass 1 ASM Input and Output
(AD,01) (C,100)
(DL,02) (C,3)
(IS,04) 1 (S,03)
(IS,01) 1 (S,04)
(IS,05) 1 (S,05)
(AD,04) (S,1)+1
(IS,010) (S,05)
(AD,03) (S,6)+1
(IS,00)
(DL,01) (C,19)
(DL,01) (C,17)
(AD,02)
START 100
A DS 3
L1 MOVER AREG, B
ADD AREG, C
MOVEM AREG, D
D EQU A+1
L2 PRINT D
ORIGIN L2+1
STOP
B DC '19
C DC '17
END
1 A 100
2 L1 103
3 B 108
4 C 109
5 D 101
6 L2 106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment