Post Reply 
Go To in Woodstocks
05-17-2016, 01:17 PM
Post: #5
RE: Go To in Woodstocks
(05-17-2016 10:36 AM)teenix Wrote:  Hi Bernhard

Thanks for the response.

I'm still not sure if I get it tho...

This is part of key press code that confuses me, I think after pressing '7' key.

01547 load constant 10
01550 c + 1 -> c[x]
01551 if n/c go to 01531 // this seems ok - in same ROM page
01531 p + 1 -> p
01532 if 0 = s 4
01533 then go to 0412 // this seems odd - jumps to ROM 1 from ROM 3
....
00412 c + 1 -> c[x]

There are 2 [go to] instructions without any bank switching but jump to different ROMs in the same 8K bank. I have observed this behaviour when I ran an emulator on the web, but I thought a general [go to] was limited to the 8 bits in the instruction, assuming no delayed select or bank switch previous.


the if n/c instruction can jump within the same 8-bit page. This goto is limited to 8-bit

All "if" instructions, like "if 0 = s 4", are followed by "then", which is a 10-bit jump address. This goto is not limited to 8-bit, but limited to 10-bit, because the instruction word is 10-bit wide.

Your work is very impressive!

Bernhard

That's one small step for a man - one giant leap for mankind.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Go To in Woodstocks - teenix - 05-17-2016, 05:16 AM
RE: Go To in Woodstocks - d b - 05-17-2016, 05:35 AM
RE: Go To in Woodstocks - PANAMATIK - 05-17-2016, 09:19 AM
RE: Go To in Woodstocks - bshoring - 05-19-2016, 06:52 AM
RE: Go To in Woodstocks - PANAMATIK - 05-19-2016, 07:26 AM
RE: Go To in Woodstocks - teenix - 05-17-2016, 10:36 AM
RE: Go To in Woodstocks - PANAMATIK - 05-17-2016 01:17 PM
RE: Go To in Woodstocks - teenix - 05-17-2016, 01:28 PM
RE: Go To in Woodstocks - teenix - 05-17-2016, 02:58 PM
RE: Go To in Woodstocks - PANAMATIK - 05-17-2016, 03:02 PM
RE: Go To in Woodstocks - teenix - 05-19-2016, 11:46 PM
RE: Go To in Woodstocks - PANAMATIK - 05-20-2016, 07:18 AM
RE: Go To in Woodstocks - teenix - 05-20-2016, 08:41 AM
RE: Go To in Woodstocks - teenix - 07-02-2016, 06:55 AM
RE: Go To in Woodstocks - Dieter - 07-03-2016, 01:16 PM
RE: Go To in Woodstocks - teenix - 07-03-2016, 01:36 PM



User(s) browsing this thread: 6 Guest(s)