Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
1
Task/Stack/Z80-Assembly/stack-1.z80
Normal file
1
Task/Stack/Z80-Assembly/stack-1.z80
Normal file
|
|
@ -0,0 +1 @@
|
|||
LD SP,&FFFF
|
||||
4
Task/Stack/Z80-Assembly/stack-2.z80
Normal file
4
Task/Stack/Z80-Assembly/stack-2.z80
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
push af
|
||||
push bc
|
||||
push de
|
||||
push hl
|
||||
4
Task/Stack/Z80-Assembly/stack-3.z80
Normal file
4
Task/Stack/Z80-Assembly/stack-3.z80
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
pop hl
|
||||
pop de
|
||||
pop bc
|
||||
pop af
|
||||
2
Task/Stack/Z80-Assembly/stack-4.z80
Normal file
2
Task/Stack/Z80-Assembly/stack-4.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ld (&nnnn),SP ;&nnnn represents a memory location that the programmer will later read from to use as a
|
||||
;comparison for the current stack pointer
|
||||
2
Task/Stack/Z80-Assembly/stack-5.z80
Normal file
2
Task/Stack/Z80-Assembly/stack-5.z80
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ld hl,0
|
||||
add hl,sp ;the z80 doesn't allow you to load SP directly into HL, so this is the quickest way
|
||||
1
Task/Stack/Z80-Assembly/stack-6.z80
Normal file
1
Task/Stack/Z80-Assembly/stack-6.z80
Normal file
|
|
@ -0,0 +1 @@
|
|||
ADD SP,&FE ;subtract two from the stack pointer. Remember that the stack grows "down" in memory.
|
||||
Loading…
Add table
Add a link
Reference in a new issue