The Stack: which comes first?
-
No one uses frame pointers in z80 code anyway - at least not AFAIK. You rarely have any spare 16bit registers - especially not if you spilled some variables to the stack already. Maybe IX, but it's a PITA to use. And you can't do a 16bit indirect load. And there is no base+offset addressing mode except for the index registers, but as I said, they're a PITA to use. They (index registers) also bloat your code. I've seen them in crappy compiler output though..
I've never really had a reason to use them either but used to find them in code that I was going through so had to learn about them. In uControllers you may have the registers to use but memory is at a premium so they are not used.
I wouldn't have to be such a smartass if you weren't such a dumbass. http://www.hq4thmarinescomm.com[^] My Site
-
So I'm doing some assembly for Z80/TI-83 plus on a routine basis in the evenings...and am stumped by a conundrum: Am I messing up the stack? Or, is the stack messing up me?
Now if you was obama you would just write an executive order and be done with it instead of actually going through the legitimate process.
Invisible Empire: A New World Order Defined (High Quality 2:14:01)[^] Watch the Fall of the Republic (High Quality 2:24:19)[^] The Truthbox[^]
-
Now if you was obama you would just write an executive order and be done with it instead of actually going through the legitimate process.
Invisible Empire: A New World Order Defined (High Quality 2:14:01)[^] Watch the Fall of the Republic (High Quality 2:24:19)[^] The Truthbox[^]
In the ~5 years you've been here i'm sure you've heard at least once that politics don't belong in the lounge... So enjoy your 1's :cool:
-
Sounds like a worthy project. I'm doing a project in 'C' on an ATMega to control electrical devices, am currently putting together a proof-of-concept for a friend and potential partner.
puromtec1 wrote:
What are frame pointer?
puromtec1 wrote:
Any good books you recommend?
hmm depends on what device you want to program. Assemblers are similar in concept they deal with moving data, doing calculations, etc. but each manufacturer of chips have there own instruction set. I've written a brief intro to AVR assembler here[^] that will introduce some basic concepts.
I wouldn't have to be such a smartass if you weren't such a dumbass. http://www.hq4thmarinescomm.com[^] My Site
Mike Hankey wrote:
AVR assembler
Do you use their IDE (Avr Studio 4)?
Regards Senthil _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro
-
Now if you was obama you would just write an executive order and be done with it instead of actually going through the legitimate process.
Invisible Empire: A New World Order Defined (High Quality 2:14:01)[^] Watch the Fall of the Republic (High Quality 2:24:19)[^] The Truthbox[^]
CaptainSeeSharp wrote:
Now if you was obama
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Mike Hankey wrote:
AVR assembler
Do you use their IDE (Avr Studio 4)?
Regards Senthil _____________________________ My Home Page |My Blog | My Articles | My Flickr | WinMacro
Yes, it's a fairly decent IDE, VS style. I tried several other IDEs as I state here[^] but AVR Studio was the best.
I wouldn't have to be such a smartass if you weren't such a dumbass. http://www.hq4thmarinescomm.com[^] My Site
-
No one uses frame pointers in z80 code anyway - at least not AFAIK. You rarely have any spare 16bit registers - especially not if you spilled some variables to the stack already. Maybe IX, but it's a PITA to use. And you can't do a 16bit indirect load. And there is no base+offset addressing mode except for the index registers, but as I said, they're a PITA to use. They (index registers) also bloat your code. I've seen them in crappy compiler output though..
harold aptroot wrote:
I've seen them in crappy compiler output though.
Yeah - the IAR C compiler makes heavy use of them. POS program, it was easier and quicker to code it in Z80 assembler most of the time.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
The stack is a bi-directional cluster f**k, or to put it another way sometimes you get the bear and sometimes the bear s&*ts on you. :) Good luck
I wouldn't have to be such a smartass if you weren't such a dumbass. http://www.hq4thmarinescomm.com[^] My Site
Stacks are always fun to manage, and that's one of the best reasons for the existence of HLLs...
Will Rogers never met me.
-
CaptainSeeSharp wrote:
Now if you was obama
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
You beat me to it...
Will Rogers never met me.
-
CaptainSeeSharp wrote:
Now if you was obama
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
I must have missed this. You mean this twerp lives in Ohio? Nish and I will have to pay him a visit. :rolleyes:
Software Zen:
delete this;
Fold With Us![^] -
CaptainSeeSharp wrote:
Now if you was obama
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Christian Graus wrote:
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
youse always pickin' on da poor guy. he ain't done nuthin'. his grammerz and spellz alrite.
Go and never darken my towels again - Groucho Marx
-
Now if you was obama you would just write an executive order and be done with it instead of actually going through the legitimate process.
Invisible Empire: A New World Order Defined (High Quality 2:14:01)[^] Watch the Fall of the Republic (High Quality 2:24:19)[^] The Truthbox[^]
Contribute, or get off the pot!
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”
-
Christian Graus wrote:
I am impressed by the high level of education in Ohio. Did you finish primary school, and you still talk like this ?
youse always pickin' on da poor guy. he ain't done nuthin'. his grammerz and spellz alrite.
Go and never darken my towels again - Groucho Marx
Yo man! I wuz gunna say dat.
There are some really weird people on this planet - MIM.
-
Now if you was obama you would just write an executive order and be done with it instead of actually going through the legitimate process.
Invisible Empire: A New World Order Defined (High Quality 2:14:01)[^] Watch the Fall of the Republic (High Quality 2:24:19)[^] The Truthbox[^]
-
Stacks are always fun to manage, and that's one of the best reasons for the existence of HLLs...
Will Rogers never met me.
Roger Wright wrote:
Stacks are always fun to manage, and that's one of the best reasons for the existence of HLLs..
Agreed but sometimes you just gotta get your hands dirty. :)
I wouldn't have to be such a smartass if you weren't such a dumbass. http://www.hq4thmarinescomm.com[^] My Site
-
I must have missed this. You mean this twerp lives in Ohio? Nish and I will have to pay him a visit. :rolleyes:
Software Zen:
delete this;
Fold With Us![^]Yes, apparently he lives in the Columbus area.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.