View unanswered posts | View active topics It is currently Fri Mar 29, 2024 10:14 am



Reply to topic  [ 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
Profile

Joined: Wed Apr 24, 2013 9:40 pm
Posts: 213
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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

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