Last visit was: Sun Sep 19, 2021 11:41 am
It is currently Sun Sep 19, 2021 11:41 am



 [ 2 posts ] 
 Storage For Data 
Author Message

Joined: Sat Aug 03, 2013 11:02 pm
Posts: 43
One of the first things I am writing for my 6800 machine is a S-Record loading routine. I need something (a register pherhaps) to store the origion of the S-Record. All my registers will be used (AA, AB, X) , and it would get confusing to save the origion on the stack, because I will have to pop it a good amount of times to acess it. Is there something else I can do to solve this problem

_________________
intel 4004 countdown

:05000000DAF81C01000C
:00000001FF


Tue Oct 15, 2013 12:01 pm

Joined: Wed Apr 24, 2013 9:40 pm
Posts: 205
Location: Huntsville, AL
James_Parsons:

Like the 6502, the 6800 does not have a lot of registers. Thus, you will need to define a small number of memory locations to hold the working store of your program. Ideally, you will keep most of the important values in processor registers since accessing them is much faster. However, in the case of the 6800, you will need to use memory for holding your "variables", and reserve the processor registers for loops, pointers, etc.

_________________
Michael A.


Tue Oct 15, 2013 12:55 pm
 [ 2 posts ] 

Who is online

Users browsing this forum: CCBot and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software