asm code in data line poken to memory

Started by funkheld, 18:50, 22 August 20

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

funkheld

Hi good afternoon.

I have this little demo to test with a call command :
------------------------
   ld hl,&c000
   ld (hl),65
   ret
------------------------

this is the date:
-------------------------
10000 data 4
10010 data 192 ,54 ,65 ,201 
-------------------------
first of all i always have the length for read in the for-next (here 4)


- to which address can I poke the asm in the 8256 in the CP M-BOX ?
  from which address can you always write the asm code ?
- how can I poke this data with read ?
- how can I start them with a call in basic ?
- how is the memory protected from basic ?

can someone make a demo of it please.
if the asm is not correct, can you change it please?
I wanted to output an "A" to an address once.

I wrote a program in purebasic which converts a bin into data.

thanks
greeting

funkheld

#1

Hi good afternoon.
why does this program have an error please (CALL)?

---------------------------
10 MEMORY &HEFFF
20 plane%=&HF000
30 POKE plane%,192
40 POKE plane%+1,54
50 POKE plane%+2,65
60 POKE plane%+3,201
70 CALL plane%
100 END
---------------------------

thank you.
greeting

GeoffB17

#2
Not sure, but I think that plane% is defined as an INT (integer) and I suspect that the value exceeds the max for int.   

Have a look at the prog attached.   SC-SAVE is an adjusted version of a prog published in one of the mags a long time ago (198?) by Roland Waddilove.   It prints large text on the screen.   I use this version as a screen saver.

This does all the things you ask about, it may be helpful.

When you load into BASIC, you need to load as "SC-SAVE.TXT", i.e. the extension as well.

funkheld

hello, thanks for the help.


greeting

Powered by SMFPacks Menu Editor Mod