@@ -69,6 +69,8 @@ int F100_L::open(const char *filename)
69
69
fprintf (out, " heap_ptr equ 0x%04x\n " , heap_ptr);
70
70
fprintf (out, " frame_ptr equ 0x%04x\n " , frame_ptr);
71
71
fprintf (out, " temp_ptr equ 0x%04x\n " , temp_ptr);
72
+ fprintf (out, " temp_1 equ 0x%04x\n " , temp_1);
73
+ fprintf (out, " temp_2 equ 0x%04x\n " , temp_2);
72
74
fprintf (out, " global_vars equ 0x%04x\n " , global_vars);
73
75
fprintf (out, " lsp equ 0x0000\n " );
74
76
@@ -181,7 +183,7 @@ void F100_L::method_start(
181
183
fprintf (out,
182
184
" lda java_stack_ptr\n "
183
185
" add #%d\n "
184
- " sto temp_ptr\n , "
186
+ " sto temp_ptr\n "
185
187
" lda frame_ptr\n "
186
188
" sto [temp_ptr]+\n "
187
189
" lda java_stack_ptr\n "
@@ -915,7 +917,7 @@ int F100_L::return_local(int index, int local_count)
915
917
" lda [frame_ptr]\n "
916
918
" sto temp_1\n "
917
919
" lda frame_ptr\n "
918
- " sta temp_ptr\n "
920
+ " sto temp_ptr\n "
919
921
" lda #%d + 2\n "
920
922
" lda [temp_ptr]+\n "
921
923
" sto frame_ptr\n "
@@ -936,10 +938,10 @@ int F100_L::return_integer(int local_count)
936
938
// Restore java_stack_ptr
937
939
fprintf (out,
938
940
" ;; return_void(local_count=%d)\n "
939
- " lda [java_stack ]-\n "
941
+ " lda [java_stack_ptr ]-\n "
940
942
" sto temp_1\n "
941
943
" lda frame_ptr\n "
942
- " sta temp_ptr\n "
944
+ " sto temp_ptr\n "
943
945
" lda #%d + 2\n "
944
946
" lda [temp_ptr]+\n "
945
947
" sto frame_ptr\n "
@@ -960,7 +962,7 @@ int F100_L::return_void(int local_count)
960
962
fprintf (out,
961
963
" ;; return_void(local_count=%d)\n "
962
964
" lda frame_ptr\n "
963
- " sta temp_ptr\n "
965
+ " sto temp_ptr\n "
964
966
" lda #%d + 2\n "
965
967
" lda [temp_ptr]+\n "
966
968
" sto frame_ptr\n "
0 commit comments