[Coco] Still having problems with Assembler
Arthur Flexser
flexser at fiu.edu
Mon Feb 4 04:51:28 EST 2008
Seems to me what's wrong is that it lacks an RTS at the end, so it just falls
through to whatever happens to randomly be in memory after the NOP. It should
clear the screen, though, assuming that weird decimal address corresponds to the
CLS routine. (Who knows? I'm too lazy to convert to the hex that it should
have been expressed in in the first place.) The END START is only an
instruction to the assembler that it should stop assembling and set START as the
exec address of the code. It doesn't generate any binary that would halt the
program.
Art
On Sun, 3 Feb 2008, Charles Shrader wrote:
>
> Can anyone see what is wrong with this assembler program?
>
> 000050 ORG 16384
> 000100 START JSR 43304
> 000110 BK1 NOP
> 000120 END START
>
> It assembles with zero errors; when I try to do a GSTART in the
> Zdebugger, the application just hangs. Shouldn't I at least get a
> cleared screen?
>
> I've even tried to set a breakpoint at BK1 with:
>
> X BK1 at the # prompt.
>
> I'm starting to wonder if trying to write assembler code in an emulator
> is not a very good idea?
>
> Chuck
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.19/1256 - Release Date:
> 2/2/2008 1:50 PM
>
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
More information about the Coco
mailing list