[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Found a minor bug in Merlin-8 v2.58
- Subject: Re: Found a minor bug in Merlin-8 v2.58
- From: Jerry <awanderin@gmail.com>
- Date: Sat, 02 Mar 2013 23:39:35 -0700
- Cancel-lock: sha1:KEI6KhSv8b8eib4Q0/a0sajzk0c=
- Newsgroups: comp.sys.apple2
- Organization: bbs-scene usenet news
- References: <2013030219093742255-wssimms@gmailcom>
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Sheldon Simms <wssimms@gmail.com> writes:
> I ran across this last night. It doesn't really matter, because the
> assembler bug is induced by a bug in the source program (failure to
> use immediate addressing).
>
> Look at the symbol table addresses generated in comparison with the
> true addresses of the labels:
>
>
> 8000: A4 03 1 ldy endmsg-msg ;should be immediate
> 8002: 60 2 loop rts
> 8003: C8 E8 A1 3 msg asc "Hi!"
> 4 endmsg
>
> --End assembly, 6 bytes, Errors: 0
>
> Symbol table - alphabetical order:
>
> endmsg =$8007 ? loop =$8003 msg =$8004
>
Very interesting. It should have generated the LDY absolute form (AC 03
00) on line 1. Its label-calculations were correct, but the code
generation was wrong.
--
Jerry awanderin at yahoo dot ca