Re: LF: More trouble...


[Prev][Next][Index][Thread]

Re: LF: More trouble...



Kevin T. Huber wrote:
> 
> I saved the assembly listing to a file and compiled it with no changes
> other than removing the e-mail information.  The program compiled
> without errors to 247 bytes.  I'm assuming you're using A68K for the
> PC and not some other compiler.
> 
> I would suggest that it's some sort of configuration problem.  Are you
> getting any header file not found errors at the very beginning?  I would
> try taking the original fargo archive and unpacking it to a different
> directory, making sure that you do pkunzip -d to build the subdirectories
> and trying to compile it from there.  Also make sure that your path doesn't
> point to the old installation.

Well, I reinstalled, and the compiler worked fine, but then, running the
program on my calc, it didn't work.  What's wrong with it?

Here it is again:
--------------------------------
        @program prog_code,prog_name
; *=changed from before        
prog_code:
        MOVE.W  #4,-(A7)            ; push set_font param
        JSR     romlib[set_font]    ; set font
        ADD.L   #2,A7               ; *clear stack
        JSR     flib[clr_scr]       ; clear screen
        JSR     flib[idle_loop]     ; wait for key 
LOOP:                               ; label         
        MOVE.W  #$00FF,-(A7)        ; *push what3
        MOVE.W  #$0000,-(A7)        ; *push what2
        MOVE.W  #$00FF,-(A7)        ; *push what1
        MOVE.W  #4,-(A7)            ; *push font style
        MOVE.W  #0,-(A7)            ; *push x loc
        MOVE.W  #0,-(A7)            ; *push y loc
        MOVE.W  D0,-(A7)            ; *push char
        JSR     romlib[putchar]     ; *display text
        ADD.L   #14,A7              ; *clear stack
        JSR     flib[idle_loop]     ; wait for key
        BRA     LOOP                ; goto label LOOP
Exit:                               ; label
        RTS                         ; end of prog

prog_name:                          ; declare string for comment line
        DC.B    "Key Code Generator",0

prog_data:
        reloc_open                  ; include libraries flib and romlib
        add_library  romlib
        add_library  flib
        reloc_close

 END                                ; see?  it really is there!
-----------------------

-- 
Jake Robb


Follow-Ups: References: