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


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

Re: ProDOS Assembly Tools docs

From MarkLim <markpmlim@yahoo.com.sg>
Newsgroups comp.sys.apple2.programmer
Subject Re: ProDOS Assembly Tools docs
Date 2012-04-07 00:57 -0700
Organization http://groups.google.com
Message-ID <bcc362b3-99f1-45ae-bd18-e255800d52f9@js1g2000pbc.googlegroups.com> (permalink)
References (3 earlier) <dog_cow-1332863689@macgui.com> <8778508.902.1332876992215.JavaMail.geo-discussion-forums@pbcvg9> <7u2dnWkYHdqOEu7SnZ2dnUVZ_s6dnZ2d@giganews.com> <21020111.1014.1332979614386.JavaMail.geo-discussion-forums@pbctp7> <7be33032-7d57-4175-b600-d1c4dc7eb23a@v2g2000vbx.googlegroups.com>

Show all headers | View raw


On Mar 31, 3:42 am, A2CPM <a...@wilserv.com> wrote:
> Hi, y'all!
>
>     A disassembly of the "LINKER" module of the ProDOS EDASM package
> has been sent to the group's GMail account.
>
> Willi

 I have also disassembled the EdAsm's Linker Module.

Currently, I am porting it to MPW IIGS assembly language because of
the RECORD feature. Now I can use syntax like

	ldy #XtrnRecord.externNum
	lda (xtrnRecP),Y		;xtrnRecP is the zpage location $8C
	sta MiniESDRec+ESDRecord.externNum

where

XtrnRecord    RECORD	0
symNamePtr DS.W    1	;offset: 0	ptr to a record in SymbolicName table
($9200)
entryPtr          DS.W    1	;offset: 2	Ptr to an ENTRY record; NULL
initially
fileNum          DS.B    1	;offset: 4	file # of src file (also called
module #)
flags	              DS.B    1	;offset: 5	flagByte
symbolNum   DS.B    1	;offset: 6	symbol # referred to by an RLD record
externNum     DS.B    1	;offset: 7	extern number (< 255)
sizeof             EQU    *	;8 bytes
                      ENDR

			and

ESDRecord	RECORD	0
flags	              DS.B	1	;offset: 0	flagByte
relAddR        EQU	*	;offset: 1	If symbol is ENTRY-type
externNum    DS.B	1	;offset: 1	If symbol is EXTRN-type
unused         DS.B	1	;offset: 2
sizeof           EQU	*	;3 bytes
                    ENDR

miniESDRec	DS	ESDRecord	;an instance of ESDRecord

This makes the code more readable especially when one has to deal with
a variant record.

As an aside, after upgrading to an i7 last year, I took the
opportunity to learn the basics of x86/x86-64 assembly using NASM. The
record syntax is similar to  MPW assembler. Incidentally, there is a
copy of MPW IIgs tools (v1.2) on the original Golden Orchard (GO)
CDROM.

Mark

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


Thread

ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-03-26 13:03 -0700
  Re: ProDOS Assembly Tools docs dog_cow@macgui.com (D Finnigan) - 2012-03-26 22:34 +0000
    Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-03-26 17:11 -0700
      Re: ProDOS Assembly Tools docs dog_cow@macgui.com (D Finnigan) - 2012-03-27 15:54 +0000
        Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-03-27 12:36 -0700
          Re: ProDOS Assembly Tools docs Antoine Vignau <antoine.vignau@laposte.net> - 2012-03-27 13:42 -0700
            Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-03-27 16:26 -0700
          Re: ProDOS Assembly Tools docs Steven Hirsch <snhirsch@gmail.com> - 2012-03-28 18:22 -0400
            Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-03-28 17:06 -0700
              Re: ProDOS Assembly Tools docs A2CPM <a2@wilserv.com> - 2012-03-30 12:42 -0700
                Re: ProDOS Assembly Tools docs MarkLim <markpmlim@yahoo.com.sg> - 2012-04-07 01:03 -0700
                Re: ProDOS Assembly Tools docs MarkLim <markpmlim@yahoo.com.sg> - 2012-04-07 00:57 -0700
              Re: ProDOS Assembly Tools docs A2CPM <a2@wilserv.com> - 2012-04-05 07:34 -0700
                Re: ProDOS Assembly Tools docs A2CPM <a2@wilserv.com> - 2012-04-05 08:50 -0700
                Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-04-05 09:55 -0700
                Re: ProDOS Assembly Tools docs dog_cow@macgui.com (D Finnigan) - 2012-04-05 17:33 +0000
                Re: ProDOS Assembly Tools docs A2CPM <a2@wilserv.com> - 2012-04-05 15:06 -0700
                Re: ProDOS Assembly Tools docs markpmlim@yahoo.com.sg - 2012-04-07 00:45 -0700
                Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-04-05 21:09 -0700
                Re: ProDOS Assembly Tools docs Steven Hirsch <snhirsch@gmail.com> - 2012-04-06 08:09 -0400
                Re: ProDOS Assembly Tools docs "Bill Garber" <willy46pa@comcast.net> - 2012-04-07 21:03 -0400
                Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-04-07 19:02 -0700
                Re: ProDOS Assembly Tools docs David Schmenk <dschmenk@gmail.com> - 2012-04-07 20:16 -0700
                Re: ProDOS Assembly Tools docs A2CPM <a2@wilserv.com> - 2012-04-08 20:52 -0700

csiph-web