8051 asm code 
Author Message
 8051 asm code

I'm getting the following messages from as31.exe 8031 compiler. Could
someone explain what it is? And how to get rid of it?

C:\8031\PUTZGER>as31 code2.asm
AS31 - UNIX platform 8051 family assembler.
Initial 32-bit compile for Windows95 and NT, 7-Jul-96.


Begin Pass #1
Begin Pass #2
line: 109, Expression greater than 8-bits.
line: 132, Expression greater than 8-bits.

; Code
...
         PUSH   PSW           ; save current registerset
         MOV    PSW,#RB1
         PUSH   ACC
         MOV    R0,#BUF    ; LINE 109 expression greater than 8-bit
REC:     MOV    A,#0
REC0:    INC    A             ; Measure duration of low-level  
         NOP
         NOP                  ; Delay
         NOP                
         NOP
         JZ     TIMEOUT       ; End of transmission if duration exeeds 256
counts
         JNB    P3.2,REC0

         INC    R0
         MOV    A,#0          
REC1:    INC    A             ; Measure duration of high-level
         NOP
         NOP                  ; Delay
         NOP
         NOP
         JZ     TIMEOUT       ; End of transmission
         JB     P3.2,REC1

         INC    R0
         LJMP    REC    
TIMEOUT:  
         MOV    A,BUF      ; LINE 132 expression greater than 8-bit
         INC    R0            ; length of first low-pulse
         ADD    A,BUF+1    ; plus length of first high-pulse
...
BUF:
        .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 1-8
        .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 9-16
        .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 17-24
        .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 25-32



Mon, 20 Jan 2003 03:00:00 GMT  
 8051 asm code

alt.lang.asm:

Quote:
> I'm getting the following messages from as31.exe 8031 compiler. Could
> someone explain what it is? And how to get rid of it?

> C:\8031\PUTZGER>as31 code2.asm
> AS31 - UNIX platform 8051 family assembler.
> Initial 32-bit compile for Windows95 and NT, 7-Jul-96.


> Begin Pass #1
> Begin Pass #2
> line: 109, Expression greater than 8-bits.
> line: 132, Expression greater than 8-bits.

> ; Code
> ...
>          PUSH   PSW           ; save current registerset
>          MOV    PSW,#RB1
>          PUSH   ACC
>          MOV    R0,#BUF    ; LINE 109 expression greater than 8-bit
> REC:     MOV    A,#0
> REC0:    INC    A             ; Measure duration of low-level  
>          NOP
>          NOP                  ; Delay
>          NOP                
>          NOP
>          JZ     TIMEOUT       ; End of transmission if duration exeeds 256
> counts
>          JNB    P3.2,REC0

>          INC    R0
>          MOV    A,#0          
> REC1:    INC    A             ; Measure duration of high-level
>          NOP
>          NOP                  ; Delay
>          NOP
>          NOP
>          JZ     TIMEOUT       ; End of transmission
>          JB     P3.2,REC1

>          INC    R0
>          LJMP    REC    
> TIMEOUT:  
>          MOV    A,BUF      ; LINE 132 expression greater than 8-bit
>          INC    R0            ; length of first low-pulse
>          ADD    A,BUF+1    ; plus length of first high-pulse
> ...
> BUF:
>    .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 1-8
>    .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 9-16
>    .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 17-24
>    .DB     0H, 0H, 0H, 0H, 0H, 0H, 0H, 0H  ; 25-32


than this for 8051 specific programming questions.

However, depending on what you replaced with the "..." it looks like
BUF is in your code segment, although that seems pretty silly because
then you couldn't store anything there.

Where and in which memory space is BUF?  If it is not in DATA or IDATA
space, it has a 16 bit address that can't fit in 8 bit registers like

memory in the range of 0 to 255.

Jack Klein
--
Home: http://jackklein.home.att.net



Tue, 21 Jan 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. convert asm to c for 8051 atmel proc

2. asm 8051

3. ASM FOR 8051

4. 8051 code generation

5. 8051 simulator - is example code available?

6. An 8051 simulator - is example code available?

7. where can i get 8051 verilog source code

8. fft code for 8051

9. Instruction Code 8051

10. Asking Help for Intel 8051 code

11. Making std asm code into Turbo Asm code?

12. ASM compiler in asm-code

 

 
Powered by phpBB® Forum Software