You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The listing introduces some formatting errors when including files. Here are a couple of examples I found while trying the assembler (included file and resulting portion of the listing)
Example 1
;*******************************************************************************
; Hardware addresses
;*******************************************************************************
HwVersion: equ $A10001 ; Console region and version
TmssPort: equ $A14000 ; Write "SEGA" to unlock VDP
VdpCtrl: equ $C00004 ; VDP control port
VdpData: equ $C00000 ; VDP data port
IoCtrl1P: equ $A10009 ; 1P I/O control port
IoCtrl2P: equ $A1000B ; 2P I/O control port
IoData1P: equ $A10003 ; 1P I/O data port
IoData2P: equ $A10005 ; 2P I/O data port
;*******************************************************************************
; EntryPoint
; Where the program boots.
;-------------------------------------------------------------------------------
; note: doesn't return
;*******************************************************************************
EntryPoint:
move.w #$2700, sr ; Disable interrupts
moveq #$0F, d0 ; Disable TMSS if needed
and.b (HwVersion), d0
beq.s @NoTmss
move.l ($100).w, (TmssPort)
@NoTmss:
bra.s * ; Hang up
;*******************************************************************************
; ErrorInt
; Called if the program crashes.
;-------------------------------------------------------------------------------
; note: doesn't return
;*******************************************************************************
ErrorInt:
move.w #$2700, sr ; Disable interrupts
bra.s * ; Hang up
The address of the included file is inserted as-is, without a newline (so it gets glued together to the address of the first included line).
Comments are removed, leaving those lines "blank" (which is both confusing and can make it harder to read when comparing against the original source code).
The last line is repeated, without an address.
The include line is removed (unless the included file is blank, for some reason).
EDIT: did I seriously write "linker" instead of "listing"? lol
The text was updated successfully, but these errors were encountered:
The listing introduces some formatting errors when including files. Here are a couple of examples I found while trying the assembler (included file and resulting portion of the listing)
Example 1
Example 2
Issues
The issues I found so far:
include
line is removed (unless the included file is blank, for some reason).EDIT: did I seriously write "linker" instead of "listing"? lol
The text was updated successfully, but these errors were encountered: