1 changed files with 27 additions and 0 deletions
@ -0,0 +1,27 @@
|
||||
; blorp_1 |
||||
; 1802 machine code |
||||
; It makes the computer go blooooblooobloobloblrrp |
||||
; Assumes a speaker connected to Q and a clock around 10 Khz, |
||||
; adjust the number at addr 1 as needed |
||||
|
||||
; Memory address, command in hexadecimal, mnemonic, comment |
||||
|
||||
00 F8 LDI Load a value into the high order bits of R3 (R3.1) |
||||
01 10 This will determine the no. of cycles and boops |
||||
02 B3 PHI R3 |
||||
03 23 DEC R3 We go back here after changing Q for another loop |
||||
04 93 GHI R3 |
||||
05 32 BZ Start over if R3.1 = 0 to avoid rolling over |
||||
06 00 |
||||
07 93 GHI R3 Take the current R3.1 |
||||
08 A2 PLO R2 And put it in R2.0 which will time the cycle |
||||
09 22 DEC R2 The rest is basically the blink program |
||||
0A 82 GLO R2 |
||||
0B 3A BNZ |
||||
0C 09 |
||||
0D CD LSQ |
||||
0E 7B SEQ |
||||
0F 38 SKP |
||||
10 7A REQ |
||||
11 30 BR |
||||
12 03 |
||||
Loading…
Reference in new issue