Skip to content

sometimes "undefined identifier" #76

@jamque

Description

@jamque

Tested with v.1.0.0-3-ga2f37e0
Demo code
File: TEST.ASM

	ZILOG
	nop
	;ld	A,(RUNEVENTS_EVENTSDONE)
;------------------------------------
; RAM
;------------------------------------
	PAGE	3
___RAM___:
PILA0:
	ds	256
PILA:	byte

	INCLUDE "RAM/RUNEVENTS.RAM"

File: RUNEVENTS.RAM

;RUNEVENTS Variables en RAM

RUNEVENTS_MAX_EVENTSDONE	equ	EVENTS_TOTAL
RUNEVENTS_EVENTSDONE:		ds	2 * RUNEVENTS_MAX_EVENTSDONE
RUNEVENTS_EVENTSDONE_END:

Beware EVENTS_TOTAL not defined, but...
Output:

Parsing file TEST.ASM
Using standard Zilog syntax
Expanding system macros
Assembling source file TEST.ASM
Assembling labels, calls and jumps
Binary file TEST.z80 saved
Symbol file TEST.sym saved
Completed in 0.03 seconds

TEST.SYM
No symbols from INCLUDE file

; Symbol table from TEST.ASM
; generated by asMSX v.1.0.0-3-ga2f37e0

; global and local labels
C000h ___RAM___
C000h PILA0
C100h PILA

uncommend line 3 from TEST.ASM
EVENTS_TOTAL stills not defined, but there is an error about RUNEVENTS_EVENTSDONE
Output:

Parsing file TEST.ASM
Using standard Zilog syntax
Expanding system macros
Assembling source file TEST.ASM
Assembling labels, calls and jumps
TEST.ASM, line 3: undefined identifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions