Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #2005

Re: Secret Shame? Reading Source Code

From ultramagnus_tcv <mikew@thecomputervalet.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Secret Shame? Reading Source Code
Date 2015-12-12 08:38 -0600
Organization A noiseless patient Spider
Message-ID <n4hbcc$1m8$1@dont-email.me> (permalink)
References <n4es54$pps$1@dont-email.me> <017be5b1-68a5-426c-884a-f01e2686308b@googlegroups.com>

Show all headers | View raw


On 2015-12-11 16:50:43 +0000, Chris Torrence said:

> Hi Mike,
> 
> You might take a look at Assembly Lines: The Complete Book:
> http://www.lulu.com/shop/roger-wagner/assembly-lines-the-complete-book/hardcover/product-21959093.html 
> 
> http://amzn.com/1312089407
> 
> You can also find it for free on the Internet Archive. :-)

Hmmm... Your response makes me wonder what I am missing, then. I have 
read Assembly Lines. In fact, I used it to create a program that took 
keyboard input on an Apple II and displayed the key pressed, the binary 
representation, the decimal representation, and the hexadecimal 
representation. It was really basic, but I had to figure out a lot of 
basic stuff that the book was key to help me to do. It took several 
months of going through the book and working through all the exercises. 
It was hugely fun and highly educational.

Having said all that, I read the original Assembly Lines, not your 
updated version (which I purchased some time, back. Thanks!). I know 
there is more material in there than the original book had and I've 
never seen the entire run of Softalk columns. Perhaps there is 
something in there about reading assembly output from other assemblers?

It's also possible that I'm looking at other syntax and then reacting. 
In other words, I see something different and have this visceral, "I 
... I ... I ... don't know what's happening here. Command-Q." I suppose 
I'll never learn anything that way.

Here's an example. This is from the SOS source code (page 13: 
http://apple3.org/Documents/SourceCode/Apple3_SOS_1.3.pdf)

1E08:62 00 158 K.HDR.CNT DW LDR.ADR-K.DRIVES

Breaking this down:

1E08		Memory Address (Equivalent to what I'd see on the left when 
assembling with Merlin?)
62 00		Presumably the opcode and operand. I can't find 62 online. Being 
SOS, the CPU is a 6502A.
158			Line number of the listing
K.HDR.CNT	Dunno. Perhaps a label?
DW			Dunno. I'm guessing Double Word, but I can't seem to find a definition.
LDR.ADR.K.DRIVES
			Another label? It's not referenced anywhere else in the PDF. 
K.DRIVES is, however, which makes me wonder if this isn't some sort of 
command or path. Perhaps K.HDR.CNT is a path or command, too?

Does this help explain my confusion? My gut says I am confused by 
syntax differences between what I learned in Merlin and whatever else 
this particular source was assembled in.

m

Back to comp.sys.apple2.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Secret Shame? Reading Source Code ultramagnus_tcv <mikew@thecomputervalet.com> - 2015-12-11 10:06 -0600
  Re: Secret Shame? Reading Source Code Chris Torrence <gorthmog@gmail.com> - 2015-12-11 08:50 -0800
    Re: Secret Shame? Reading Source Code ultramagnus_tcv <mikew@thecomputervalet.com> - 2015-12-12 08:38 -0600
      Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2015-12-12 16:04 -0600
        Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2015-12-12 16:10 -0600
        Re: Secret Shame? Reading Source Code ultramagnus_tcv <mikew@thecomputervalet.com> - 2015-12-13 10:21 -0600
          Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2015-12-13 11:23 -0600
            Re: Secret Shame? Reading Source Code ultramagnus_tcv <mikew@thecomputervalet.com> - 2015-12-13 11:41 -0600
          Re: Secret Shame? Reading Source Code dempson@actrix.gen.nz (David Empson) - 2015-12-14 08:15 +1300
            Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2015-12-13 17:16 -0600
            Re: Secret Shame? Reading Source Code Jeff Blakeney <CUTjeffrey_blakeney@yahoo.ca> - 2015-12-13 18:17 -0500
              Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2015-12-13 17:39 -0600
              Re: Secret Shame? Reading Source Code m.omalley.au@gmail.com - 2016-01-24 02:26 -0800
                Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2016-01-24 10:45 -0600
                Re: Secret Shame? Reading Source Code wssimms@gmail.com - 2016-01-24 15:20 -0800
                Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2016-01-24 23:33 -0600
                Re: Secret Shame? Reading Source Code wssimms@gmail.com - 2016-01-25 05:01 -0800
                Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2016-01-25 16:29 -0600
    Re: Secret Shame? Reading Source Code michael.pohoreski@gmail.com - 2016-01-27 07:09 -0800
  Re: Secret Shame? Reading Source Code wssimms@gmail.com - 2015-12-11 18:02 -0800
    Re: Secret Shame? Reading Source Code awanderin <awanderin@gmail.com> - 2015-12-11 23:01 -0700
      Re: Secret Shame? Reading Source Code Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-01-28 12:33 -0800
        Re: Secret Shame? Reading Source Code Michael Barry <barrym95838@yahoo.com> - 2016-01-28 22:50 -0800
          Re: Secret Shame? Reading Source Code wssimms@gmail.com - 2016-01-29 02:04 -0800
          Re: Secret Shame? Reading Source Code Michael J. Mahon <mjmahon@aol.com> - 2016-01-29 13:58 -0600
          Re: Secret Shame? Reading Source Code Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-01-29 16:10 -0800
          Re: Secret Shame? Reading Source Code Michael Pohoreski <michael.pohoreski@gmail.com> - 2016-01-29 16:15 -0800
            Re: Secret Shame? Reading Source Code Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2016-01-31 03:50 -0600
  Re: Secret Shame? Reading Source Code michael.pohoreski@gmail.com - 2016-01-25 11:03 -0800
  Re: Secret Shame? Reading Source Code michael.pohoreski@gmail.com - 2016-01-25 11:04 -0800
  Re: Secret Shame? Reading Source Code michael.pohoreski@gmail.com - 2016-01-27 07:14 -0800
    Re: Secret Shame? Reading Source Code ultramagnus_tcv <mikew@thecomputervalet.com> - 2016-04-29 19:33 -0500

csiph-web