splat64 0.36.1__py3-none-any.whl → 0.36.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
splat/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  __package_name__ = __name__
2
2
 
3
3
  # Should be synced with pyproject.toml
4
- __version__ = "0.36.1"
4
+ __version__ = "0.36.2"
5
5
  __author__ = "ethteck"
6
6
 
7
7
  from . import util as util
@@ -594,7 +594,7 @@ class LinkerWriter:
594
594
  if not noload:
595
595
  seg_rom_start = get_segment_rom_start(seg_name)
596
596
  line += f" AT({seg_rom_start})"
597
- if options.opts.emit_subalign and segment.subalign != None:
597
+ if options.opts.emit_subalign and segment.subalign is not None:
598
598
  line += f" SUBALIGN({segment.subalign})"
599
599
 
600
600
  self._writeln(line)
@@ -636,7 +636,7 @@ class LinkerWriter:
636
636
  if noload:
637
637
  line += " (NOLOAD)"
638
638
  line += " :"
639
- if options.opts.emit_subalign and segment.subalign != None:
639
+ if options.opts.emit_subalign and segment.subalign is not None:
640
640
  line += f" SUBALIGN({segment.subalign})"
641
641
 
642
642
  self._writeln(line)
splat/segtypes/segment.py CHANGED
@@ -56,7 +56,7 @@ def parse_segment_subalign(segment: Union[dict, list]) -> Optional[int]:
56
56
  default = options.opts.subalign
57
57
  if isinstance(segment, dict):
58
58
  subalign = segment.get("subalign", default)
59
- if subalign != None:
59
+ if subalign is not None:
60
60
  subalign = int(subalign)
61
61
  return subalign
62
62
  return default
@@ -342,17 +342,17 @@ def write_assembly_inc_files():
342
342
 
343
343
 
344
344
  def write_gte_macros():
345
- # Taken directly from https://github.com/Decompollaborate/rabbitizer/blob/develop/docs/r3000gte/gte_macros.s
345
+ # Taken directly from https://github.com/Decompollaborate/rabbitizer/blob/-/docs/r3000gte/gte_macros.s
346
346
  # Please try to upstream any fix/update done here.
347
- gte_macros = """
347
+ gte_macros = """\
348
348
  .ifndef .L_GTE_MACRO_INC
349
349
  .L_GTE_MACRO_INC:
350
350
 
351
351
  ## GTE instruction macros
352
352
  ## These are meant for use with GAS and replace DMPSX
353
353
 
354
- .macro cop2op pseudo, op, sf = 1, mx = 0, v = 0, cv = 0, lm = 0
355
- cop2 \\pseudo << 20 | \\sf << 19 | \\mx << 17 | \\v << 15 | \\cv << 13 | \\lm << 10 | \\op
354
+ .macro cop2op fake_op, op, gbg = 0, sf = 1, mx = 0, v = 0, cv = 0, lm = 0
355
+ cop2 \\fake_op << 20 | \\gbg << 20 | \\sf << 19 | \\mx << 17 | \\v << 15 | \\cv << 13 | \\lm << 10 | \\op
356
356
  .endm
357
357
 
358
358
  /* RTPS 15 0x4A180001 Perspective transform */
@@ -375,9 +375,9 @@ def write_gte_macros():
375
375
  cop2op 0x07, 0x10
376
376
  .endm
377
377
 
378
- /* DPCT 17 0x4A88002A Depth cue color RGB0,RGB1,RGB2 */
378
+ /* DPCT 17 0x4AF8002A Depth cue color RGB0,RGB1,RGB2 */
379
379
  .macro dpct
380
- cop2op 0x08, 0x2A
380
+ cop2op 0x0F, 0x2A
381
381
  .endm
382
382
 
383
383
  /* INTPL 8 0x4A980011 Interpolation of vector and far color */
@@ -442,6 +442,7 @@ def write_gte_macros():
442
442
 
443
443
 
444
444
  ## Instructions which take an argument
445
+ # gbg: arg is 5 bit wide
445
446
  # sf : arg is 1 bit wide
446
447
  # mx : arg is 2 bit wide
447
448
  # v : arg is 2 bit wide
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: splat64
3
- Version: 0.36.1
3
+ Version: 0.36.2
4
4
  Summary: A binary splitting tool to assist with decompilation and modding projects
5
5
  Project-URL: Repository, https://github.com/ethteck/splat
6
6
  Project-URL: Issues, https://github.com/ethteck/splat/issues
@@ -76,7 +76,7 @@ The brackets corresponds to the optional dependencies to install while installin
76
76
  If you use a `requirements.txt` file in your repository, then you can add this library with the following line:
77
77
 
78
78
  ```txt
79
- splat64[mips]>=0.36.1,<1.0.0
79
+ splat64[mips]>=0.36.2,<1.0.0
80
80
  ```
81
81
 
82
82
  ### Optional dependencies
@@ -1,4 +1,4 @@
1
- splat/__init__.py,sha256=DNgsNxB7n0GQjvlsa29pMAyW2yISvkOzadiTCjitUhg,291
1
+ splat/__init__.py,sha256=D9mhFw3srVPyKi4iH1-XvkWNLiBV8-ByL6aIP6Ylrww,291
2
2
  splat/__main__.py,sha256=T333dHDgr-2HYYhtARnYMEjdECnYiNIKfcXDD99o22A,732
3
3
  splat/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  splat/disassembler/__init__.py,sha256=IubLMnm_F5cZ7WUPBfk1VJ7vdj6i1if5GG6RBvEoBEA,226
@@ -17,8 +17,8 @@ splat/scripts/capy.py,sha256=svbOfLO34-QN3xLiBy9vk2RGs_To8TWMWEKBw6yx2xQ,3674
17
17
  splat/scripts/create_config.py,sha256=ZQrqdewjR2poVhlvoa0CVZMfr9vnupYGouaAn2MLph4,11783
18
18
  splat/scripts/split.py,sha256=081pZYN34iriEhMmDBDxxLrDkSKkAksHJydzQ0VAEGk,21933
19
19
  splat/segtypes/__init__.py,sha256=-upUw_4JGQtvyp6IfTMzOq_CK3xvVaT_0K0_EipHyOo,208
20
- splat/segtypes/linker_entry.py,sha256=oTpt9Iw9ybrmwrkacyH5RYzj01wGTT7vjeE3xE1Og38,24908
21
- splat/segtypes/segment.py,sha256=-wc5xpWMN8AO8S3rrtibJgw0MMk2Dm1lZSI8dQj-H20,30625
20
+ splat/segtypes/linker_entry.py,sha256=7N3Z09fUTnoi3GIzpKRTqrhElU5QmvsL_l4UNznr1Uw,24916
21
+ splat/segtypes/segment.py,sha256=XoS1E51zQKA2MPyTghkxjzTJU4zQ86fslY9WvbQTGa0,30629
22
22
  splat/segtypes/common/__init__.py,sha256=mnq0acScilSCCo6q2PvkDk0Or3V8qitA7I8QMVw8haI,631
23
23
  splat/segtypes/common/asm.py,sha256=k3p4vgbQJP40iyTgQkIci1j3CpKkWksqoWBx2Pb2oh8,703
24
24
  splat/segtypes/common/asmtu.py,sha256=C52kKh-8YeDHu0EucEfQ-tQMtDgfKfwAJ6wwiW6nOBU,354
@@ -80,7 +80,7 @@ splat/util/cache_handler.py,sha256=N0SggmvYwh0k-0fngHXoHG1CosC2rCsnlCTDsG8z5aE,1
80
80
  splat/util/color.py,sha256=FSmy0dAQJ9FzRBc99Yt4kBEyB62MC_YiVkqoWgPMsRU,371
81
81
  splat/util/compiler.py,sha256=uXShMm49380ENecSFlsi75LWI45yakWkExZX8NT5pOU,1778
82
82
  splat/util/conf.py,sha256=aM6O2QikosjL95pCxI2FcCxrwDsLP8T8sRf2Uev_Pac,3236
83
- splat/util/file_presets.py,sha256=ufSZdeYi3uXos363FmzLfzNMNiTgJq_yMTZAcgRdjw8,18540
83
+ splat/util/file_presets.py,sha256=whms6WHRwvVfg-PQTwao4QimvVHSxfUIUaz-qXdcEbM,18585
84
84
  splat/util/log.py,sha256=aJA1rg8IirJu1wGzjNuATHvepYvD3k5CtEyMasyJWxI,1193
85
85
  splat/util/options.py,sha256=bXFruGE-tcqsdM0nYNqf_IQIiqxFCxn7NWEo_igOZIc,31252
86
86
  splat/util/palettes.py,sha256=d3KoZnwt-zunI9eNwb3txysXg4DY3xnF0O5aQRxM4so,2920
@@ -95,8 +95,8 @@ splat/util/n64/find_code_length.py,sha256=uUoPoUORAjsAvH8oGqwnGvw6j8I_NnSrZtA-x9
95
95
  splat/util/n64/rominfo.py,sha256=s13r4pDPH9Mc43ZGpomPnLZPWchhbv0kIjDoM0B3Ong,16963
96
96
  splat/util/psx/__init__.py,sha256=kCCaR-KB1mNlIcXB4OuuSQ2zVLbWg_SnIZIUeyjeBBI,39
97
97
  splat/util/psx/psxexeinfo.py,sha256=MrxY28nes0uzpFmCz0o9JFbF8s1eQRQNOpC_82wsMVI,5725
98
- splat64-0.36.1.dist-info/METADATA,sha256=KinjZck6hH8X_-gX2ZlaaFPquW5GdObwaPS2ltPMNdc,3830
99
- splat64-0.36.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
- splat64-0.36.1.dist-info/entry_points.txt,sha256=O7Xy-qNOHcI87-OQrWJ-OhRDws74SuwVb_4rtnp0eLo,52
101
- splat64-0.36.1.dist-info/licenses/LICENSE,sha256=97VMVzjG8yQvsf8NG2M9IFSbh7R8cifJnc6QK1cZqj8,1070
102
- splat64-0.36.1.dist-info/RECORD,,
98
+ splat64-0.36.2.dist-info/METADATA,sha256=a6Y5_TEjCIfrXNhXKkOuwNLLTNQj0ykLSQ1v0C5MpZM,3830
99
+ splat64-0.36.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
100
+ splat64-0.36.2.dist-info/entry_points.txt,sha256=O7Xy-qNOHcI87-OQrWJ-OhRDws74SuwVb_4rtnp0eLo,52
101
+ splat64-0.36.2.dist-info/licenses/LICENSE,sha256=97VMVzjG8yQvsf8NG2M9IFSbh7R8cifJnc6QK1cZqj8,1070
102
+ splat64-0.36.2.dist-info/RECORD,,