S19 file

Thread Starter

skychan1213

Joined Jul 10, 2008
9
To: everybodyhi, can somebody let me know what is going wrong with my HC11 file?ADCTL EQU $1030ADR2 EQU $1032 ORG $0400MYADC LDAB #$21 STAB ADCTL LDAB #$1ADELAY1 DECB BNE DELAY1 LDAA $1032 STAA $0000 SWI when i create the listing file with AS11 adc.asm -L > adc.lst ( adc is my asm file name ) but my s19 file is 0kB, what is going wrong? thank you !
 

hgmjr

Joined Jan 28, 2005
9,027
To: everybodyhi, can somebody let me know what is going wrong with my HC11 file?

Rich (BB code):
ADCTL  EQU $1030
ADR2   EQU $1032 
 
          ORG $0400
MYADC:    LDAB #$21 
          STAB ADCTL 
          LDAB #$1
ADELAY1:  DECB 
          BNE 
DELAY1:   LDAA $1032 
          STAA $0000 
          SWI
when i create the listing file with AS11 adc.asm -L > adc.lst ( adc is my asm file name ) but my s19 file is 0kB, what is going wrong? thank you !
Most likely the reason there is no S19 is that there is an error in your code.

It looks like you have two line labels ADELAY and DELAY1. I believe they should an a colon after them.

hgmjr
 
Last edited:

RiJoRI

Joined Aug 15, 2007
536
Moto asm didn't need a colon. Wierdos!
Rich (BB code):
ADCTL EQU $1030
ADR2 EQU $1032 
ORG $0400MYADC <<-- Huh? I'd guess MYADC should be on the next line.

 LDAB #$21 
 STAB ADCTL 
 LDAB #$1
ADELAY1
 DECB 
 BNE   <<-- Hoo,boy! This will eat up the opcode for "LDAA"!! What does $1032 translate into as an opcode??
DELAY1: 
 LDAA $1032 
 STAA $0000 
 SWI   <<-- And what is in the SWI vector?? If it's not initialized, you're bouncing off to La-La Land!
RULE #1 of coding: USE COMMENTS!!!

--Rich
 
Top