"Commented" SROFF Example from GST Macro Assembler Manual

Anything QL Software or Programming Related.
Post Reply
User avatar
ql_freak
Gold Card
Posts: 354
Joined: Sun Jan 18, 2015 1:29 am

"Commented" SROFF Example from GST Macro Assembler Manual

Post by ql_freak »

I "commented" it in the printed manual (see attachements, comments are readable if you open the pictures in a new tab). The example program and the resulting SROFF data is in appendix B.2 from page 42 to 44.

I mostly understand the SROFF output, but don't understand the 2 SECTION directives. Page 37 says the section directive is FB 04 but in the example FB 02 (which is the comment directive according to page 36) is used. The question is: Which part is wrong the description (page 36, 37) or the example?

Also there is an error in the example SROFF for the JSR line: Must be 4EBA (instead of 4ECA, see also program listing on page 42):

Code: Select all

0100111010     111010
JSR signature  adressing mode PC relative with displacement
Attachments
sroffCommentedExampleGstMacManualPg43.jpg
sroffCommentedExampleGstMacManualPg44.jpg


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
User avatar
mk79
QL Wafer Drive
Posts: 1349
Joined: Sun Feb 02, 2014 10:54 am
Location: Esslingen/Germany
Contact:

Re: "Commented" SROFF Example from GST Macro Assembler Manual

Post by mk79 »

Easy, just look at any real-world _REL file. It's FB 04. Cheers.


User avatar
ql_freak
Gold Card
Posts: 354
Joined: Sun Jan 18, 2015 1:29 am

Re: "Commented" SROFF Example from GST Macro Assembler Manual

Post by ql_freak »

Thank You!


http://peter-sulzer.bplaced.net
GERMAN! QL-Download page also available in English: GETLINE$() function, UNIX-like "ls" command, improved DIY-Toolkit function EDLINE$ - All with source. AND a good Python 3 Tutorial (German) for Win/UNIX :-)
Post Reply