This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASSUME declaration in an a.66 file

Hello ALL,

if I defined in L166Locate- µVision DPP USAGE NDATA DPP2(0xC000-0xE7FF) and in one of my a.66 file

ASSUME DPP1 : NCONST
ASSUME DPP2 : NDATA
ASSUME DPP3 : SYSTEM

?ND?Test section data word 'NDATA'
test DSW 1
?ND?Test ENDS

and in the h-file: extern int test;

Why it's still not enough declarations and I get error for 'test' : missing DPP information?
If I use an explicit declaration there is no an error. But I don't want use this way.


Thanks,
with best regards,
A.

  • Actually you need to define groups.

    ;------------------------------------------------------------------------------
    ; For correct access to NEAR DATA, CONST and CODE groups are required
    ;------------------------------------------------------------------------------
    NCODE	CGROUP  ?PR?TEMPLATE  ; section ?PR?TEMPLATE is member of NCODE
    NCONST  DGROUP  ?NC?TEMPLATE  ; section ?NC?TEMPLATE is member of NCONST
    NDATA	DGROUP  ?ND?TEMPLATE  ; section ?ND?TEMPLATE is member of NDATA
    
    ASSUME  DPP1 : NCONST         ; DPP1 addresses the NCONST group
    ASSUME  DPP2 : NDATA          ; DPP2 addresses the NDATA  group
    ASSUME  DPP3 : SYSTEM         ; DPP3 addresses the SYSTEM page
    

    Take a look to ..\C166\ASM\Template.A66

  • Thank you very much,
    it was exactly what I missed...

    Regards,
    A.