Author Topic: asm code in data line poken to memory  (Read 681 times)

0 Members and 1 Guest are viewing this topic.

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0
asm code in data line poken to memory
« 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
« Last Edit: 20:55, 22 August 20 by funkheld »

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0
Re: asm code in data line poken to memory
« Reply #1 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
« Last Edit: 00:01, 23 August 20 by funkheld »

Offline GeoffB17

  • 6128 Plus
  • ******
  • Posts: 799
  • Country: gb
  • PCW since '85, more CP/M than Loco
  • Liked: 169
  • Likes Given: 9
Re: asm code in data line poken to memory
« Reply #2 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.
« Last Edit: 00:30, 23 August 20 by GeoffB17 »

Offline funkheld

  • 464 Plus
  • *****
  • Posts: 386
  • Liked: 20
  • Likes Given: 0
Re: asm code in data line poken to memory
« Reply #3 on: 00:47, 23 August 20 »
hello, thanks for the help.


greeting