Post Reply 
(HP48) Assembler Question
02-14-2023, 08:52 AM
Post: #1
(HP48) Assembler Question
Hi,
i am trying to pop a real from the stack to use this value for further calculations.
I expected the result in A(W). But the following Code, causes a reset or memory clear :-) :

...
GOSBVL =POP1%
GOSBVL =SAVEPTR
% do something with A(W)
SETHEX % POP1 sets DEC Mode
GOSBVL =GETPTRLOOP

How do I use POP1% in the right way? Do i have to increase D+1 and D1+5 (did not worked at all) ?

My 2nd question is regarding the =LOOP entrypoint on my G with ROM Version M with MetaKernel 2.3

GOVLNG =LOOP causes a soft reset

This simple code does not work
GOSBVL =SAVEPTR % save regs
% some instructions
GOSBVL =GETPTR % restore regs
GOVLNG =LOOP % exit to RPL

I am using this one instead, which never made any problems:

GOSBVL =SAVEPTR
% some instructions
GOSBVL =GETPTRLOOP % exit to RPL

But examining the romcode, this should be the same.

Ralf
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(HP48) Assembler Question - Hiwi - 02-14-2023 08:52 AM
RE: (HP48) Assembler Question - Hiwi - 02-15-2023, 11:08 AM
RE: (HP48) Assembler Question - Hiwi - 03-02-2023, 10:53 AM



User(s) browsing this thread: 1 Guest(s)