Click here to Skip to main content
15,895,799 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Q&A, later in the 21st Century Pin
theoldfool6-Dec-20 2:33
professionaltheoldfool6-Dec-20 2:33 
GeneralRe: Q&A, later in the 21st Century Pin
CodeWraith6-Dec-20 3:03
CodeWraith6-Dec-20 3:03 
GeneralRe: Q&A, later in the 21st Century Pin
Marc Clifton6-Dec-20 3:38
mvaMarc Clifton6-Dec-20 3:38 
GeneralRe: Q&A, later in the 21st Century Pin
MKJCP7-Dec-20 3:13
MKJCP7-Dec-20 3:13 
GeneralRe: Q&A, later in the 21st Century Pin
W Balboos, GHB7-Dec-20 3:43
W Balboos, GHB7-Dec-20 3:43 
GeneralFrom my crossassembler's manual Pin
CodeWraith5-Dec-20 9:24
CodeWraith5-Dec-20 9:24 
GeneralRe: From my crossassembler's manual Pin
Gerry Schmitz5-Dec-20 9:34
mveGerry Schmitz5-Dec-20 9:34 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 9:58
CodeWraith5-Dec-20 9:58 
In my case it's more about the little differences between RISC and CISC processors. I have a nice set of general purpose registers, of which any can be made the current stack pointer at any time. While this is a cross assembler, it still generally assumes a CISC processor. I have two stacks, a parameter stack and a call stack. For all calls it must be sorted out, where the parameters come from (other registers or rarely memory) and what stack they need to go to.

The coolest thing is that the processor does the same trick with the program counter. This opens up a neat possibility. It's a typical 8 bit processor which can only address up to 64k. Of course you can add a larger banked memory, but doing the bank switching in code will get complicated and error prone.

By having multiple program counters, I can move the bank switching into the calling protocol. I can call any routine in any part of the banked memory without any complication.
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 12:58
trønderen5-Dec-20 12:58 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 14:47
CodeWraith5-Dec-20 14:47 
GeneralRe: From my crossassembler's manual Pin
OriginalGriff5-Dec-20 9:58
mveOriginalGriff5-Dec-20 9:58 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 10:52
CodeWraith5-Dec-20 10:52 
GeneralRe: From my crossassembler's manual Pin
harold aptroot5-Dec-20 12:10
harold aptroot5-Dec-20 12:10 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 12:32
CodeWraith5-Dec-20 12:32 
GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 12:44
trønderen5-Dec-20 12:44 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 14:09
CodeWraith5-Dec-20 14:09 
GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 16:54
trønderen5-Dec-20 16:54 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 23:49
CodeWraith5-Dec-20 23:49 
GeneralRe: From my crossassembler's manual Pin
glennPattonWork35-Dec-20 10:24
professionalglennPattonWork35-Dec-20 10:24 
GeneralRe: From my crossassembler's manual Pin
OriginalGriff5-Dec-20 10:50
mveOriginalGriff5-Dec-20 10:50 
GeneralRe: From my crossassembler's manual Pin
glennPattonWork35-Dec-20 10:58
professionalglennPattonWork35-Dec-20 10:58 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 11:42
CodeWraith5-Dec-20 11:42 
GeneralRe: From my crossassembler's manual Pin
OriginalGriff5-Dec-20 20:20
mveOriginalGriff5-Dec-20 20:20 
GeneralRe: From my crossassembler's manual Pin
trønderen5-Dec-20 13:40
trønderen5-Dec-20 13:40 
GeneralRe: From my crossassembler's manual Pin
CodeWraith5-Dec-20 14:40
CodeWraith5-Dec-20 14:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.