Re: Disassembling BASIC?


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

Re: Disassembling BASIC?



Joseph wrote in message <346FCFF8.568@geocities.com>...
>A thought that ran through my head:
>
>Write a BASIC program, disassemble the 8xp file, make minor adjustments
>in the resulting assembly, reassemble and now you have an assembly
>version of a BASIC program.

No, you don't, you have a mess.
>
>I haven't tried this, but why won't it work? I know it won't because it
>seems too easy.


The 8xp file is tokenized BASIC, not machine language.  Each keyword (found
in the catalog) is turned into a 1-byte token, not an ml op-code. If you use
a diassembler on it you'll be assembling garbage.

Tom Lake


Follow-Ups: References: