Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Raymond Wiker Newsgroups: comp.sys.apple2 Subject: Re: Uthernet II Assembly Listing Questions Date: Fri, 08 Jan 2016 20:46:56 +0100 Organization: A noiseless patient Spider Lines: 39 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="cb8dd355627d7c5fcf9bddc820649d4c"; logging-data="8683"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WRzB+kwmdjRF5Y0Wg10Ke" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (darwin) Cancel-Lock: sha1:I+OLl6bKpMmyrc4Swxm7tGmXvN8= sha1:fu5rcu0TBD4WsPCkmdMt1YYvzFc= Xref: csiph.com comp.sys.apple2:26651 ultramagnus_tcv writes: > On 2016-01-08 15:51:23 +0000, ultramagnus_tcv said: > >> On 2016-01-08 07:47:15 +0000, awanderin said: >> >>>> IIRC, $ = Memory Location, #$ = enter value (Hex). Is #6 = enter value >>>> (dec)? >>> >>> Yes, $ in front means hex, % means binary (0s and 1s), nothing means >>> decimal. >> >> Thank you, Jerry. >> >> But what is: #6? > > Sometimes trying things out is the best answer? > > I put together a very small program in Merlin 8 and specified: > > LDA #10 > LDA #$10 > LDA 10 > > The first two assemble as A9 0A, which would seem to indicate that #10 > is a way to specify the decimal of a number in the editor but have it > convert to hexadecimal during assembly. Both are immediate mode. That's odd - I would expect $ to mean "treat the following as a hex number", and # to indicate an immediate value (rather than an address). In that case, I would expect the first two to generate A9 0A and A9 10, respectively. > LDA 10 is A5 0A. So the "10" is again converted to hexadecimal. A5 is > Zero Page. So, this would load whatever value is in $000A. > > And watching the Inspector in Virtual ][ confirms my guesses. > > m