CPCWiki forum

General Category => NC100, NC200, PCW, PDA600 - the rest of the Family! => Topic started by: funkheld on 20:50, 22 August 20

Title: asm code in data line poken to memory
Post by: funkheld on 20:50, 22 August 20
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
Title: Re: asm code in data line poken to memory
Post by: funkheld on 23:42, 22 August 20

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
Title: Re: asm code in data line poken to memory
Post by: GeoffB17 on 00:28, 23 August 20
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.
Title: Re: asm code in data line poken to memory
Post by: funkheld on 00:47, 23 August 20
hello, thanks for the help.


greeting