8031 question

Feb 01, 2007 4 Replies

Hello



I have problem with translating .asm code for 8031 MCU. Here is the source:



formatting link


Regards



Try:

formatting link

HTH G.B.

Hello,

the comments in this file are not in german. May be polish, i don´t know. Could also be russian because there is a table for cyrillic letters.

Regards

Stefan

The source and especially the comments seem to be related to one of the states evolved from the former yugoslavia. But since I suppose - because of your name - that you're also from there, please tell us at which point you're having a problem with the source code?

Regards Horst

With ASEM -51 ver 1.3 I get this errors:

disp.asm(89): illegal character disp.asm(90): illegal statement syntax disp.asm(91): only allowed in code segment disp.asm(92): illegal statement syntax disp.asm(417): illegal character disp.asm(418): illegal character disp.asm(419): illegal character disp.asm(430): illegal character disp.asm(431): illegal character disp.asm(432): illegal character disp.asm(433): illegal character disp.asm(434): illegal character disp.asm(441): illegal character disp.asm(442): illegal character disp.asm(2161): illegal character disp.asm(2162): illegal character disp.asm(2270): illegal character disp.asm(2304): illegal character disp.asm(2402): illegal character disp.asm(2403): illegal character disp.asm(2505): illegal character disp.asm(2505): illegal character disp.asm(3037): illegal character disp.asm(3079): illegal character

With other assembler I get very large number of similar errors.

On the line 90 i change: ; macro def %*DEFINE(MOVW(MEMLOC,CONST)) (MOV %MEMLOC,#LOW %CONST MOV %MEMLOC+1,#HIGH %CONST )

to: ; macro def MOVW MACRO MEMLOC,CONST MOV MEMLOC,#LOW CONST MOV MEMLOC+1,#HIGH CONST ENDM

on line 419:

%MOVW(EPTR,TEXT) %MOVW(RPTR,TEXT) %MOVW(CURSOR,TEXT)

to:

MOVW EPTR,TEXT MOVW RPTR,TEXT MOVW CURSOR,TEXT

on line 432:

RUN: %MOVW(RPTR,TEXT) %MOVW(REFRENO,0) %MOVW(REFRENX,0) RUN2: %MOVW(RETADRO,0) %MOVW(RETADRX,0)

to:

RUN: MOVW RPTR,TEXT MOVW REFRENO,0 MOVW REFRENX,0 RUN2: MOVW RETADRO,0 MOVW RETADRX,0

on line 443:

%MOVW(CURSOR,TEXT) %MOVW(EPTR,TEXT)

to:

MOVW CURSOR,TEXT MOVW EPTR,TEXT

Also similar changes are on lines: 2163, 2272, 2306, 2404 and 2506.

Now there is no errors with ASEM - 51, but I'm not shure is this OK?

Regards

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required