Skip to content

Commit

Permalink
swars: Removed some unused asm code
Browse files Browse the repository at this point in the history
  • Loading branch information
mefistotelis committed Apr 20, 2024
1 parent ca3bf56 commit 0b48e6a
Showing 1 changed file with 1 addition and 244 deletions.
245 changes: 1 addition & 244 deletions src/swars.sx
Original file line number Diff line number Diff line change
Expand Up @@ -43490,30 +43490,6 @@ map_things_unkn_func_04: /* 0x0428B8 */
ret


/*----------------------------------------------------------------*/
read_textwalk: /* 0x042A84 */
/*----------------------------------------------------------------*/
push %ebx
push %ecx
push %edx
mov $0x2,%edx
mov $aDataTextwalk_d,%eax
call ac_LbFileOpen
mov %eax,%ecx
cmp $0xffffffff,%eax
je jump_42ab3
mov $0x280,%ebx
mov $textwalk_data,%edx
call ac_LbFileRead
mov %ecx,%eax
call ac_LbFileClose
jump_42ab3:
pop %edx
pop %ecx
pop %ebx
ret


/*----------------------------------------------------------------*/
rotate_texture: /* 0x042AB8 */
/*----------------------------------------------------------------*/
Expand Down Expand Up @@ -209945,148 +209921,6 @@ func_df554:
ret


/*----------------------------------------------------------------*/
func_df8d0_transform_path: /* 0xdf8d0 */
/*----------------------------------------------------------------*/
push %ebx
push %ecx
push %esi
push %edi
push %ebp
sub $0x4,%esp
mov %eax,%ebp
mov %edx,(%esp)
mov %eax,%esi
mov %edx,%edi
push %edi
jump_df8e2:
mov (%esi),%al
mov %al,(%edi)
cmp $0x0,%al
je jump_df8fa
mov 0x1(%esi),%al
add $0x2,%esi
mov %al,0x1(%edi)
add $0x2,%edi
cmp $0x0,%al
jne jump_df8e2
jump_df8fa:
pop %edi
mov $0x2f,%dl
mov %edi,%esi
jump_df8ff:
mov (%esi),%al
cmp %dl,%al
je jump_df917
cmp $0x0,%al
je jump_df915
inc %esi
mov (%esi),%al
cmp %dl,%al
je jump_df917
inc %esi
cmp $0x0,%al
jne jump_df8ff
jump_df915:
sub %esi,%esi
jump_df917:
mov %esi,%edx
test %esi,%esi
jne jump_df93b
mov $0x5c,%dl
mov %edi,%esi
jump_df921:
mov (%esi),%al
cmp %dl,%al
je jump_df939
cmp $0x0,%al
je jump_df937
inc %esi
mov (%esi),%al
cmp %dl,%al
je jump_df939
inc %esi
cmp $0x0,%al
jne jump_df921
jump_df937:
sub %esi,%esi
jump_df939:
mov %esi,%edx
jump_df93b:
test %edx,%edx
je jump_df9d8
mov game_dirs,%edx
xor %esi,%esi
test %edx,%edx
je jump_df9d8
jump_df953:
mov game_dirs(%esi),%edi
sub %ecx,%ecx
dec %ecx
xor %eax,%eax
repnz scas %es:(%edi),%al
not %ecx
dec %ecx
mov %ecx,%ebx
mov %ebp,%eax
mov game_dirs(%esi),%edx
call ac_strncmp
test %eax,%eax
jne jump_df9c7
cmpb $0x0,game_dirs_0_use_cd(%esi)
je jump_df9d8
mov $cd_drive,%esi
mov (%esp),%edi
push %edi
jump_df988:
mov (%esi),%al
mov %al,(%edi)
cmp $0x0,%al
je jump_df9a0
mov 0x1(%esi),%al
add $0x2,%esi
mov %al,0x1(%edi)
add $0x2,%edi
cmp $0x0,%al
jne jump_df988
jump_df9a0:
pop %edi
mov %ebp,%esi
push %edi
sub %ecx,%ecx
dec %ecx
mov $0x0,%al
repnz scas %es:(%edi),%al
dec %edi
jump_df9ac:
mov (%esi),%al
mov %al,(%edi)
cmp $0x0,%al
je jump_df9c4
mov 0x1(%esi),%al
add $0x2,%esi
mov %al,0x1(%edi)
add $0x2,%edi
cmp $0x0,%al
jne jump_df9ac
jump_df9c4:
pop %edi
jmp jump_df9d8
jump_df9c7:
mov game_dirs_1_directory(%esi),%ebx
add $0x5,%esi
test %ebx,%ebx
jne jump_df953
jump_df9d8:
add $0x4,%esp
pop %ebp
pop %edi
pop %esi
pop %ecx
pop %ebx
ret


/*----------------------------------------------------------------*/
GLOBAL_FUNC (ASM_heapmgr_init) /* 0x0DFA80 */
/*----------------------------------------------------------------*/
Expand Down Expand Up @@ -215981,6 +215815,7 @@ poo_textnames: /* 0x153884 */
.long aObjctvPoo10
.long aObjctvPoo11
.long aObjctvPoo12

.ascii "\x02\x02\x02\x02\x02\x02\x02\x02"
.ascii "\x02\x03\x03\x03\x02\x02\x02\x02"
.ascii "\x02\x02\x02\x02\x02\x02\x01\x04"
Expand Down Expand Up @@ -217510,84 +217345,6 @@ aObjctvPoo11: /* 0x15CB18 */
.string "poo11"
aObjctvPoo12: /* 0x15CB1E */
.string "poo12"
aMy_big_map_0: /* 0x15CB24 */
.string "my_big_map\t\t\t"
aTextures_0: /* 0x15CB32 */
.string "textures\t\t\t\t"
aFace_textures: /* 0x15CB3F */
.string "face_textures\t\t\t"
aObject_points: /* 0x15CB50 */
.string "object_points\t\t\t"
aObject_faces: /* 0x15CB61 */
.string "object_faces\t\t\t"
aObjects: /* 0x15CB71 */
.string "objects \t"
aQuick_lights: /* 0x15CB87 */
.string "quick_lights\t\t\t"
aFull_lights: /* 0x15CB97 */
.string "full_lights\t\t\t"
aNormals: /* 0x15CBA6 */
.string "normals\t\t\t\t"
aObject_faces4: /* 0x15CBB2 */
.string "object_faces4\t\t\t"
aAnim_tmaps: /* 0x15CBC3 */
.string "anim_tmaps\t\t\t"
aTraffic_nodes: /* 0x15CBD1 */
.string "traffic_nodes\t\t\t"
aLight_commands: /* 0x15CBE2 */
.string "light_commands\t\t"
aCol_vects_list: /* 0x15CBF3 */
.string "col_vects_list\t\t"
aCol_vects: /* 0x15CC04 */
.string "col_vects\t\t\t\t"
aWalk_headers: /* 0x15CC12 */
.string "walk_headers\t\t\t"
aWalk_items: /* 0x15CC22 */
.string "walk_items\t\t\t"
aCol_columns: /* 0x15CC30 */
.string "col_columns \t"
aPrim4_textures: /* 0x15CC45 */
.string "prim4_textures \t"
aPrim_face_text: /* 0x15CC5A */
.string "prim_face_textures\t"
aPrim_object_po: /* 0x15CC6E */
.string "prim_object_points \t"
aPrim_object_fa: /* 0x15CC83 */
.string "prim_object_faces \t"
aPrim_object__0: /* 0x15CC97 */
.string "prim_object_faces4 \t"
aPrim_objects: /* 0x15CCAC */
.string "prim_objects \t"
aSpecial_object: /* 0x15CCC1 */
.string "special_object_faces\t"
aSpecial_obje_0: /* 0x15CCD7 */
.string "special_object_faces4\t"
aFloor_tiles: /* 0x15CCEE */
.string "floor_tiles\t\t\t"
aUsed_objective: /* 0x15CCFD */
.string "used_objectives\t\t"
aObjectives: /* 0x15CD0F */
.string "objectives\t\t\t"
aUser_heap: /* 0x15CD1D */
.string "user_heap\t\t\t\t"
aScreen_point_p: /* 0x15CD2B */
.string "screen_point_pool\t\t"
aDraw_list: /* 0x15CD3F */
.string "draw_list\t\t\t\t"
aSort_sprites: /* 0x15CD4D */
.string "sort_sprites\t\t\t"
aSort_lines: /* 0x15CD5D */
.string "sort_lines\t\t\t"
aCommands: /* 0x15CD6B */
.string "commands\t\t\t\t"
aBezEdit: /* 0x15CD78 */
.string "bez edit\t\t\t\t"
aSpareMapBuffer: /* 0x15CD85 */
.string "spare map buffer "
aUsed_lvl_objec: /* 0x15CD9C */
.string "used_lvl_objectives\t"
aLevel_miscs: /* 0x15CDB1 */
.string "level_miscs\t\t\t"

aDataTextwalk_d: /* 0x15D2F9 */
.string "data\\textwalk.dat"
Expand Down

0 comments on commit 0b48e6a

Please sign in to comment.