Re: A83: Re: ZeS


[Prev][Next][Index][Thread]

Re: A83: Re: ZeS



I already wrote a program that does this; it's on the Programming Page of InterCalc.org, called TEST1. http://www.intercalc.org/programming.shtml
 
This is what it looks like:
 
PROGRAM:TEST1
"00*row+(*row+(
"TEST1
Send(9prgmZASMLOAD
Return
tanh-1(EndQtanh-1 nCr Gtanh-1(ScatterLtanh-1(HorizJtanh-1(little T)Msinh-1(00000000000000000000000000000000000000000000000000000000000000
 
When you start to execute it like a Basic program, it skips the first line because it thinks it is a string, because of the ".
Then it loads the string TEST1 into Ans, then tells it to run ZASMLOAD. ZASMLOAD then starts with the first line as ASSEMBLY code, NOT Basic. The " and two zeroes disassemble to be "ld hl,(3030h)". That's pointless, so it's okay. The rest of that line is code to jump past the Basic code to where the actually Assembly program is at.When it hits a "ret", it jumps back to the "Return" command, where the program stops.
All those other zeroes are there because ZASMLOAD wouldn't run unless it was 91 bytes or higher or so. Weird, but it works.
 
I was going to go further into this, but since I saw ZeS in the Archives, I dropped it.
 
----- Original Message -----
From: Kevin Harbin
To: assembly-83@lists.ticalc.org
Sent: Friday, August 11, 2000 4:03 PM
Subject: Re: A83: Re: ZeS

How??

Nivek

www.angelfire.com/games2/NivekEnterprises

>I don't know if this is related, but I came up with a way to have squished
>assembly programs run themselves, as long as ZASMLOAD was on the calculator.
>That way, you get that concept, but you don't have to use ZeS.



Do You Yahoo!?
Kick off your party with Yahoo! Invites.

References: