|
#1
|
|||
|
|||
Excellent idea for a program. I'll have to try to replicate it on the 8800.
This is interesting code to read. JMD must be like a CALL. I can't figure out how the WAIT subroutine returns. Does the Kenbak have a stack? Where is the equivalent "RET" instruction? Paul |
#2
|
|||
|
|||
No, no stack on a Kenbak. The JMD (Jump and Mark Direct) instruction stores the value {program counter}+2 at the address in the operand, then jumps to the address {operand}+1. To return you do an unconditional JPI (Jump Indirect) using the start of the subroutine as the operand, which returns you to the instruction following the JMD. It's all pretty neat but it means you can't do recursion, of course
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Looking for Kenbak 1 kit | Boris | Kenbak-1 | 2 | 10-20-2010 06:17 AM |
Kenbak Assembler Project | Grant Stockly | Kenbak-1 | 0 | 08-29-2007 08:30 AM |
Anyone Around??? What happened to the Kenbak kit? | Cappellanus | Kenbak-1 | 2 | 08-25-2007 01:16 AM |
Serial Loading Program | Grant Stockly | Altair 8800 | 3 | 07-08-2007 09:42 AM |