all: Increase file struct size to 32 bytes for both files and streams

This commit is contained in:
Ry 2023-03-30 21:44:29 -07:00
parent b6cde81d2b
commit fa693c71a7
5 changed files with 10 additions and 6 deletions

View File

@ -19,7 +19,7 @@
call end_current_task call end_current_task
bg_file_name: data.strz "bg.raw" bg_file_name: data.strz "bg.raw"
bg_file_struct: data.fill 0, 8 bg_file_struct: data.fill 0, 32
#include "../../../fox32rom/fox32rom.def" #include "../../../fox32rom/fox32rom.def"
#include "../../fox32os.def" #include "../../fox32os.def"

View File

@ -79,7 +79,7 @@ shell_dir_command_failed_to_open_file:
shell_dir_command_list_buffer: data.fill 0, 341 shell_dir_command_list_buffer: data.fill 0, 341
shell_dir_command_file_buffer: data.fill 0, 9 shell_dir_command_file_buffer: data.fill 0, 9
shell_dir_command_type_buffer: data.fill 0, 4 shell_dir_command_type_buffer: data.fill 0, 4
shell_dir_command_temp_file_struct: data.fill 0, 8 shell_dir_command_temp_file_struct: data.fill 0, 32
shell_dir_command_header_string: shell_dir_command_header_string:
data.8 SET_COLOR data.8 0x20 data.8 1 ; set the color to green data.8 SET_COLOR data.8 0x20 data.8 1 ; set the color to green
data.str "file type size" data.8 10 data.str "file type size" data.8 10

View File

@ -43,6 +43,6 @@ shell_type_command_file_not_found:
ret ret
shell_type_command_file_struct: data.32 0 data.32 0 shell_type_command_file_struct: data.fill 0, 32
shell_type_command_file_character_buffer: data.8 0 shell_type_command_file_character_buffer: data.8 0
shell_type_command_file_not_found_string: data.strz "file not found: " shell_type_command_file_not_found_string: data.strz "file not found: "

View File

@ -124,11 +124,15 @@ shell_task_id: data.8 0
stream_struct: stream_struct:
data.8 0x00 data.8 0x00
data.16 0x00 data.16 0x0000
data.32 0x00 data.32 0x00000000
data.8 0x01 data.8 0x01
data.32 stream_get_input data.32 stream_get_input
data.32 stream_write_to_terminal data.32 stream_write_to_terminal
data.32 0x00000000
data.32 0x00000000
data.32 0x00000000
data.32 0x00000000
#include "stream.asm" #include "stream.asm"
#include "text.asm" #include "text.asm"

View File

@ -109,7 +109,7 @@ launch_fxf_from_disk_file_error:
mov r0, 0xFFFFFFFF mov r0, 0xFFFFFFFF
ret ret
launch_fxf_struct: data.fill 0, 8 launch_fxf_struct: data.fill 0, 32
launch_fxf_task_id: data.8 0 launch_fxf_task_id: data.8 0
launch_fxf_binary_ptr: data.32 0 launch_fxf_binary_ptr: data.32 0
launch_fxf_stack_ptr: data.32 0 launch_fxf_stack_ptr: data.32 0