8031 question

Hello

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

formatting link

Regards

Reply to
mplanic
Loading thread data ...

Try:

formatting link

HTH G.B.

Reply to
Gerd Bräth

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

Reply to
Stefan Brröring

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

Reply to
Horst Meier

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

Reply to
mplanic

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.