Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View 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

View file

@ -0,0 +1 @@
MOVEM.L (A0)+,D0-D3 ;returns the four longs stored in the stack back to where they came from.

View file

@ -0,0 +1,2 @@
CMPA.L #userStack,A0
BEQ StackIsEmpty

View 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.

View 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