RE:What kind of chained code it try find?

Selukov Andrew <[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Organization Home
Message-ID <[email protected]>
hi
I find my error to replace lcall 
Now the ROM_Search find and can start my program but still with my help.
Then I turn on my box (TINI400) , ROM_Search find program init.tbin run it.
The init.tbin copy speaker.tbin to RAM and must jump to speaker.tbin but this 
doesn't happen.
I clean speaker.tbin in RAM made B2 F0 commands in JAVAKIT
I make RESET and push E -command in JAVAKIT then speaker.tbin run

Where are I make mistake now?



andrew-4/[email protected]:~/temp/tini/work/asm$ diff -Naur init.a51_ init.a51
--- init.a51_   2004-01-13 16:14:27.000000000 +0600
+++ init.a51    2004-01-13 17:39:03.000000000 +0600
@@ -36,8 +36,8 @@
 ;
 ; The speaker.a51 tbin NEEDS to go in bank 2
 ;
-TBIN_SPEAKER_TARGET   equ 22h
-TBIN_SPEAKER_START    equ 220000h
+TBIN_SPEAKER_TARGET   equ 2h
+TBIN_SPEAKER_START    equ 20000h

 TIMED_ACCESS  MACRO
     mov     ta, #0AAh        ; Enable access to ACON
@@ -96,19 +96,21 @@
     ;
     ; Enable the serial port
     ;
-    mov     scon0, #5Ah
-    setb    tr2
+
+
+    ;mov     scon0, #5Ah
+    ;setb    tr2

     ; put a byte out there, make sure serial output port is up
-    clr     ti
-    mov     a, #'I'
-    lcall   SerialOutput
-    mov     a, #'n'
-    lcall   SerialOutput
-    mov     a, #'i'
-    lcall   SerialOutput
-    mov     a, #'t'
-    lcall   SerialOutput
+    ;clr     ti
+    ;mov     a, #'I'
+    ;lcall   SerialOutput
+    ;mov     a, #'n'
+    ;lcall   SerialOutput
+    ;mov     a, #'i'
+    ;lcall   SerialOutput
+    ;mov     a, #'t'
+    ;lcall   SerialOutput

     ;
     ; initialize our data pointers
@@ -123,12 +125,12 @@
     mov     dph1, #0
     mov     dpl1, #0

-    lcall   Copy64K
+    ljmp    Copy64K

     ;
     ; Now we need to jump to TBIN_SPEAKER_TARGET
     ;
-    ljmp    TBIN_SPEAKER_START
+    ;ljmp    TBIN_SPEAKER_START

 Copy64K:
     ;
@@ -199,16 +201,26 @@


 copy_exit:
-    mov     a, #'I'
-    lcall   SerialOutput
-    mov     a, #'n'
-    lcall   SerialOutput
-    mov     a, #'i'
-    lcall   SerialOutput
-    mov     a, #'t'
-    lcall   SerialOutput
+    ; Enable the serial port
+    ;
+    ;mov     scon0, #5Ah
+    ;setb    tr2

-    ret
+    ; put a byte out there, make sure serial output port is up
+    ;clr     ti
+
+    ;mov     a, #'I'
+    ;lcall   SerialOutput
+    ;mov     a, #'n'
+    ;lcall   SerialOutput
+    ;mov     a, #'i'
+    ;lcall   SerialOutput
+    ;mov     a, #'t'
+    ;lcall   SerialOutput
+    ljmp    TBIN_SPEAKER_START
+
+
+


 ;*******************************************




Best regards
Andrew

P.S.
Sorry for bad English






>> This(ini.a51) files can't executioned itself
>> I mean I must go command
>> B41
>> X
>> in JAVAKIT-shell
>> How can I avoid it?

>The ROM searches downward for executable code so it might be finding
>something else to execute.  Try putting it higher, like at bank 47h.

> Kris


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.