Re: New three versions of C64 source code

From: Greg King <greg.king5_at_verizon.net>
Date: Thu, 04 Dec 2014 11:48:09 -0500
Message-id: <54809049.1060909@verizon.net>
On 2014-12-03 11:39 AM, Kajtár Zsolt wrote:
>
> Or, if you use PETSCII translation, then convert all characters properly, so
> that it ends up like it was planned:
>
> .text "enD"

It wasn't planned that way -- that is a Commodore co-incidence.

Remember that we're talking about Microsoft's Micro BASIC.  It was 
designed for all micro-computers.  A machine's character encoding is 
irrelevant.

The keyword table isn't encoded as some lower-case letters and one 
upper-case letter.  It's encoded, decoded, and used as, some arbitrary 
characters and a bit-flag.  The disassembled source code should be 
written that way for all of the keywords.  It avoids confusion.  As Ruud 
said, there's no shifted "+" sign.  If the table were written like this:

   ....
   .byte "noT"
   .byte "steP"
   .byte "+"+$80
   .byte "-"+$80
   ....

Then, a first glance would make a reader think that it is two tables, 
two encodings, and two separate purposes.  It's more obvious that:

   ....
   .byte "no","t"+$80
   .byte "ste","p"+$80
   .byte "+"+$80
   .byte "-"+$80
   ....

is only one table.


       Message was sent through the cbm-hackers mailing list
Received on 2014-12-04 18:00:03

Archive generated by hypermail 2.2.0.