diff options
author | Ian C <ianc@noddybox.co.uk> | 2017-01-11 10:22:53 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2017-01-11 10:22:53 +0000 |
commit | 7bfdf10881b8dbff2690aeff58d84ef38567f1b3 (patch) | |
tree | 63aefad79bebf667d0d01d45f7ce660d638ddf1b /src | |
parent | a703276adc97fae897589e133290ab76e1806d87 (diff) |
Updated Spectrum example.
Diffstat (limited to 'src')
-rw-r--r-- | src/example/spectrum.asm | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/example/spectrum.asm b/src/example/spectrum.asm index c3946d8..5782cc1 100644 --- a/src/example/spectrum.asm +++ b/src/example/spectrum.asm @@ -14,8 +14,18 @@ start: org 32768 xor a - ld bc,$fe00 loop: - out (c), a + out ($fe), a + + ld hl,0x5800 + ld bc,32*24 + +loop1: + ld (hl),a + inc hl + dec c + jr nz,loop1 + djnz loop1 + inc a jr loop |