Post Reply 
How to add GOSBVL in debug4x
12-08-2020, 09:58 AM (This post was last modified: 12-08-2020 01:20 PM by Giuseppe Donnini.)
Post: #4
RE: How to add GOSBVL in debug4x
Then there must be additional errors in your source code. I just checked it and everything seems to get assembled the way I predicted.

I used the following assembly source file (TEST.A):

Code:
ASSEMBLE
        GOSBVL  01160
        GOSBVL  #01160
        GOSBVL  $01160
        GOSBVL  =01160
        GOSBVL  =$01160

together with this linker control file (TEST.M):

Code:
TITLE GOSBVL Test
OUTPUT TEST
LLIST TEST.LR
SUPPRESS XREF
SEARCH ENTRIES.O
REL TEST.O
END

Here is the listing returned by the assembler (TEST.L) after executing SASM TEST.A :

Code:
Saturn Assembler                                       Tue Dec 08 10:51:45 2020
V3.0.8 (12/06/2002)                                      TEST.A         Page    1

    1 00000       ASSEMBLE
    2 00000 8F884         GOSBVL  01160
            00
    3 00007 8F061         GOSBVL  #01160
            10
*** ERROR: Undefined symbol ***
    4 0000E 8F000         GOSBVL  $01160
            00
    5 00015 8F000         GOSBVL  =01160
            00
    6 0001C 8F000         GOSBVL  =$01160
            00
Saturn Assembler                                       Tue Dec 08 10:51:45 2020
V3.0.8 (12/06/2002)   Symbol Table                       TEST.A         Page    2

 $01160                            Ext                   -     4     6
 01160                             Ext                   -     5
 ASSEMBLE                          Rel       0 #00000000 -     1
Saturn Assembler                                       Tue Dec 08 10:51:45 2020
V3.0.8 (12/06/2002)   Statistics                         TEST.A         Page    3

Input Parameters

  Source file name is TEST.A

  Listing file name is TEST.l

  Object file name is TEST.o

  Flags set on command line
    None

Warnings:

  None

Errors:

  1 error (line 4)

and the one returned by the linker (TEST.LR) after executing SLOAD -H TEST.M :

Code:
Saturn Loader, Ver. version 3.0.8, 12/07/02


Output Module:
Module=TEST
  Start=00000 End=00022 Length=00023   Symbols=9162 References=   2
  Date=Tue Dec 08 10:51:49 2020   Title= GOSBVL Test


Source modules:
Module=ENTRIES.O
  Start=00000 Module Contains No Code
  Date=Tue Dec 08 10:47:50 2020   Title=                                        Tue Dec 08 10:47:50 2020

Module=TEST.O
  Start=00000 End=00022 Length=00023
  Date=Tue Dec 08 10:51:45 2020   Title=                                        Tue Dec 08 10:51:45 2020

Unresolved References

$01160                          (  1)   01160                           (  1)

/SLOAD:  End of Saturn Loader Execution

As you can see, GOSBVL #01160 works, while the other four examples produce the errors and opcodes I mentioned.

Also, the address #6577B contained in the assembled opcode you reported (8FB7756) corresponds to the supported ROM entry point $_Undefined which is usually not used as a machine code entry point, but rather as a System RPL entry. How does that come about?

If you want, you can PM me your source code and I will have a look at it.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
How to add GOSBVL in debug4x - joved - 12-07-2020, 04:46 PM
RE: How to add GOSBVL in debug4x - joved - 12-08-2020, 07:45 AM
RE: How to add GOSBVL in debug4x - Giuseppe Donnini - 12-08-2020 09:58 AM
RE: How to add GOSBVL in debug4x - joved - 12-08-2020, 10:33 AM



User(s) browsing this thread: 1 Guest(s)