3 ms·
Not really, I think it would be better to implement a series of smaller functions and utilize the stack [1]. That way you avoid lda and sta'ing tonnes. I much
by bArray 3y ago
Not really, I think it would be better to implement a series of smaller functions and utilize the stack [1]. That way you avoid lda and sta'ing tonnes.
I much preferred the 8086/8088 instructions though [2], pop and push are nice to have.
[1] https://en.wikibooks.org/wiki/6502_Assembly#Stack https://en.wikibooks.org/wiki/6502_Assembly#Stack
[2] https://en.wikipedia.org/wiki/X86_instruction_listings#Original_8086/8088_instructions https://en.wikipedia.org/wiki/X86_instruction_listings#Origi...
- colanderman 3y agoThe stack only helps a little. Even basic operations like "add two numbers together" require the use of memory (as there is no opcode to add two registers together).