Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 3424

programming • BBC Assembly Questions

$
0
0
Hi all!

I have some questions re. assembly on the BBC Micro, these will probably seem silly to many of you but I'm new to the system and to be honest, I think a lot of the documentation is pretty poor.

1. How do I get the low/high byte of an address with the BBC Basic assembler? In other 6502 assemblers it's been: LDX #<LABEL but when I try this in
BBC Basic I get the error "No such variable" and I don't think it's the label.
2. Can you call DFS commands from a different sideways bank? e.g. If I call OSFILE with the control block at say &8100 in a ram bank is that a problem?
It feels wrong but I hope it isn't cause it'll cause more problems for me lol.
3. Is there a better way to rename a file from assembly than loading the file into memory, changing the name pointer, and saving that piece of memory
back as a new file?

Sorry if these are dumb or obvious, but I appreciate your input regardless!

Statistics: Posted by krool885 — Thu Jan 23, 2025 7:42 pm



Viewing all articles
Browse latest Browse all 3424

Trending Articles