Stockly.com Forums  

Go Back   Stockly.com Forums > Kenbak-1 Series 2 > Kenbak-1
FAQ Community Calendar Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2007, 12:57 PM
phe phe is offline
Member
 
Join Date: Dec 2006
Posts: 48
Default

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
Reply With Quote
  #2  
Old 10-09-2007, 01:48 PM
Geoff Harrison Geoff Harrison is offline
Senior Member
 
Join Date: Feb 2007
Posts: 104
Default

Quote:
Originally Posted by phe View Post
Does the Kenbak have a stack? Where is the equivalent "RET" instruction?
Paul
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 07:02 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.