#: 3217 S3/Languages
01-May-90 22:37:23
Sb: #3199-#F$Chain question
Fm: Bill Dickhaus 70325,523
To: Zack Sessions 76407,1524 (X)
Zack,
As Pete said, use something other than 0, since the data area is at least 256
bytes, then leas 255,u should always work. Using 0 causes the stack to start 0
off of U, but since the stack is used "backwards", the page preceding the one
pointed to by U will get zapped. (You probably already know this, but in case
someone else is wondering) a PSHS X instruction does the same thing as STX
,--S. Whenever a register is pushed on the stack, the stack pointer is
decremented. So the stack pointer is usually set to the end of the area to be
used for the stack.
Bill
There is 1 Reply.
|