Login
Back to forumSee the full topicGo to last reply

Posted By

JamesC
on 2004-05-20
21:46:23
 Re: SYS command

How about using a REM stetement to hold machine code?

10 rem xxxxxxxx (enough x's to hold the machine code)
20 for x=4102 to 4110 : read a : poke x,a : next
30 data 1,2,3,4,5,6,7,8,9 (actual machine code in decimal would be placed here, I am just setting up an example here)

Run the program, then delete lines 20 and 30. Save to disk for safekeeping, then append your existing program onto this line.

Now your program can poke the desired jump-to address to the proper place in line 10 to make the jump valid in machine language. You have a known place to SYS to (SYS4102).

This is modified from Transactor Volume 6, Issue 5, Bits and Pieces column.



Back to top


Copyright © Plus/4 World Team, 2001-2024