Hexlader

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
Shaun_B
Posts: 474
Joined: Wed Apr 22, 2009 10:22 am

Hexlader

Post by Shaun_B »

Hi,

Here's a Hex loader I found in a Dutch book that I seem to have.

Code: Select all

    1 REM *** HEXLADER
    2 REM *** COPYRIGHT 1983
   10 DIM H$(2)
   20 PRINT "ADDRES"
   30 INPUT S
   40 POKE 16389,INT(S/256)
   50 POKE 16388,S-INT(S/256)*256
   60 PRINT "AANTAL BYTES"
   70 INPUT B
   80 CLS
   90 FOR A=S TO S+(B-1)
  100 PRINT AT 0,0;"HEXCODE ";A
  110 INPUT H$
  120 LET M=CODE H$(1)-28
  130 LET L=CODE H$(2)-28
  140 IF H$="SS" THEN GOTO 180
  150 IF M>15 OR L>15 THEN GOTO 110
  160 POKE A,M*16+L
  170 NEXT A
  180 STOP
Credit goes to Wessel Akkermans, author of Zakboekje voor de ZX81.

For convenience, I made a version based on this. Enter your start address and then each hexidecimal op code. When you're done, enter SS. My version saves counting out how many bytes that you want to enter, and it uses some BASIC byte saving techniques.

Regards,

Shaun.
Attachments
HEXV2.P
Fewer BASIC lines - to re-run use GOTO 10 and not RUN
(422 Bytes) Downloaded 225 times
HEX.P
(403 Bytes) Downloaded 230 times
Post Reply