🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #5150

TRS-80 Roms (Re: Languages and learning (was: Philosophy of C))

#5150
From: Felix Lee
Date: Wed, 17 Feb 1988 05:08
25 lines
1638 bytes
In article <903@micomvax.UUCP> ray@micomvax.UUCP (Ray Dunn) writes:
>In article <3487@ihlpf.ATT.COM> nevin1@ihlpf.UUCP (00704A-Liber,N.) writes:
>> ....  About 7 years ago, I disassembled the BASIC ROMs on my TRS-80 Model I
>> I noticed a curious piece of code (which I will pseudocode here):
>>
[...]
>Without examining it too closely, it seems to me that it is MUCH more likely
>that you are disassembling on the wrong boundaries than the code is jumping
>into the middle of instructions!!  Interpreting binary dumps can be VERY
>misleading!

With all due respect, the TRS-80 *did* use this trick.  One instance was
the TRS-80 Basic SET and RESET instructions (which turned on/off a pixel
on the screen).  The SET instruction would have an entry point at 0200:
	0200  06 00	LD A,00
	0202  01 06 01	LD BC,0106	; this is just junk
	0205  ; real code starts here
and the RESET instruction would start at 0203:
	0203  06 01	LD A,01
	0205  ; real code starts here
[numbers are approximate]

Multiple entry points without the overhead of branches.
--
Felix Lee	flee@gondor.cs.psu.edu	*!psuvax1!gondor!flee
Technical Details
Message-ID: <3289@psuvax1.psu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!psuvax1!gondor.cs.psu.edu!flee
References: <11348@brl-adm.ARPA> <3473@ihlpf.ATT.COM> <3487@ihlpf.ATT.COM> <903@micomvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!psuvax1!gondor.cs.psu.edu!flee
From: flee@gondor.cs.psu.edu (Felix Lee)
Newsgroups: comp.lang.misc
Subject: TRS-80 Roms (Re: Languages and learning (was: Philosophy of C))
Message-ID: <3289@psuvax1.psu.edu>
Date: 17 Feb 88 05:08:31 GMT
References: <11348@brl-adm.ARPA> <3473@ihlpf.ATT.COM> <3487@ihlpf.ATT.COM> <903@micomvax.UUCP>
Sender: netnews@psuvax1.psu.edu
Reply-To: flee@gondor.cs.psu.edu (Felix Lee)
Organization: The Roadside Picnic
Lines: 25