You don't mention which assembler you're using, but almost certainly you want more hashes, in BASIC's assembler syntax
otherwise you're loading the contents of memory location &80 into A, rather than the immediate (constant) &80.
Sprow.
Code:
lda #&80ldy #filename DIV256ldx #filename MOD256jsr osfind
That looks like a description of the OS_Find SWI for RISC OS (on an Arm, with registers R0-R15) which is probably just muddying the water here,I've looked at [...] search for file with File$Path [...] path pointed to by R2.
Sprow.
Statistics: Posted by rps102 — Sun Mar 23, 2025 2:44 pm