It is currently Fri Jun 05, 2020 5:00 pm

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Stack data structure
PostPosted: Tue Jan 14, 2014 5:00 pm 

Joined: Tue Dec 17, 2013 6:19 pm
Posts: 3
hi all.
i'm working on a program that simulates stack data structure. which must push data and show data.
can you help me how to design that or give me a simple code?

 Post subject: Re: Stack data structure
PostPosted: Sat Jan 18, 2014 1:51 am 

Joined: Tue Nov 15, 2005 7:58 am
Posts: 129
Location: Oregon, USA
The 68000 doesn't have explicit data-stack (vs. return address stack) manipulation instructions, such as PUSH, POP, DROP, etc. Instead, SP (same as A7) relative addressing is usually used, although any address register can be used as a data-stack pointer. In the help file, under "Jimmy Mardell's Reference Guide \ About the MOTOROLA 68000 Processor", see the list of addressing modes in the section titled "Effective Addressing". Also see the section titled "The Stack", and refer to Tutorial4 in the "Examples" directory.

There are other relevant discussions already in the forum. You might try searching for "stack".

As far as "and show data", this is not sufficiently specified. What and where is the data, and how is to be displayed?

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 8 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

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