Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Stack/68000-Assembly/stack-1.68000
Normal file
2
Task/Stack/68000-Assembly/stack-1.68000
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
LEA userStack,A0 ;initialize the user stack, points to a memory address in user RAM. Only do this once!
|
||||
MOVEM.L D0-D3,-(A0) ;moves the full 32 bits of registers D0,D1,D2,D3 into the address pointed by A0, with pre-decrement
|
||||
1
Task/Stack/68000-Assembly/stack-2.68000
Normal file
1
Task/Stack/68000-Assembly/stack-2.68000
Normal file
|
|
@ -0,0 +1 @@
|
|||
MOVEM.L (A0)+,D0-D3 ;returns the four longs stored in the stack back to where they came from.
|
||||
2
Task/Stack/68000-Assembly/stack-3.68000
Normal file
2
Task/Stack/68000-Assembly/stack-3.68000
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
CMPA.L #userStack,A0
|
||||
BEQ StackIsEmpty
|
||||
1
Task/Stack/68000-Assembly/stack-4.68000
Normal file
1
Task/Stack/68000-Assembly/stack-4.68000
Normal file
|
|
@ -0,0 +1 @@
|
|||
LEA (4,SP),SP ;does the same thing to the stack as popping 4 bytes, except those bytes are not retrieved.
|
||||
2
Task/Stack/68000-Assembly/stack-5.68000
Normal file
2
Task/Stack/68000-Assembly/stack-5.68000
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
MOVE.W (SP),D0 ;load the top two bytes of the stack into D0
|
||||
MOVE.W (A0),D0 ;load the top two bytes of A0 into D0
|
||||
Loading…
Add table
Add a link
Reference in a new issue