Updated upload script to allow bigger programs
This commit is contained in:
parent
1d0f621243
commit
2beb51427f
27
src/fib.z80
27
src/fib.z80
|
@ -1,8 +1,8 @@
|
|||
.org $0000
|
||||
.org 0x1500
|
||||
jp main
|
||||
|
||||
main:
|
||||
init:
|
||||
ld hl, out
|
||||
|
||||
ld a, (amount)
|
||||
ld d, a
|
||||
|
||||
|
@ -14,8 +14,7 @@ init:
|
|||
loop:
|
||||
add a, b
|
||||
|
||||
ld (hl), a
|
||||
inc hl
|
||||
out 0x80, a
|
||||
|
||||
ld c, a
|
||||
ld a, b
|
||||
|
@ -23,23 +22,9 @@ loop:
|
|||
|
||||
dec d
|
||||
jp nz, loop
|
||||
|
||||
verify_init:
|
||||
ld hl, out
|
||||
|
||||
ld a, (amount)
|
||||
ld d, a
|
||||
|
||||
verify:
|
||||
ld a, (hl)
|
||||
inc hl
|
||||
|
||||
dec d
|
||||
jp nz, verify
|
||||
|
||||
done:
|
||||
halt
|
||||
|
||||
jp 0x0000
|
||||
|
||||
amount:
|
||||
.db 10
|
||||
|
@ -47,5 +32,3 @@ x:
|
|||
.db 0
|
||||
y:
|
||||
.db 1
|
||||
|
||||
out .equ $1000
|
||||
|
|
Reference in New Issue
Block a user