Giter Club home page Giter Club logo

psx-asm-cargo's People

Contributors

hornc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

psx-asm-cargo's Issues

Write up spASM conversion process

Write up this conversion process in a readme, explain some of the more complicated conversions.

Compare the original Greentro release EXE with this generated EXE,

0x80010000
vs
0x80100000 with decrunch (not included in the official source release)

Add clang compile instructions somewhere

Confirming only psexe.ld is required from Rust psx:

cd hit-greensrc
clang --target=mipsel-sony-psx -c intro.asm
ld.lld -o intro.exe -T psexe.ld --oformat=binary intro.o


mednafen intro.exe

Greentro conversion

Convert the classic 1998 Greentro asm intro from spASM into the form that compiles with this toolchain.

I've made the conversion and know what's involved, but it's a bit messy. I'd like to show how to convert step-by-step.

Method:

  • Copy original source files
  • rename (downcase), update inc names and paths
  • dos2unix source files
  • strip EOL whitespace
  • change comment notation
  • hex notation, $ff -> 0xff
  • register notation s0 -> $s0
  • translate labels
  • translate directives
  • convert subiu pseudo ops to addiu -
  • list.inc 24 bit addr + 8 bit size conversion
  • switch bnez odering where it has a detrimental effect (remove extra nops after jumps?) Better sol.n: use compiler directive .set noreorder and keep the original delay slot instructions and nops.

I think that's everything.

Bonus:
NTSC compile option? I'm having trouble using Mednafen with NTSC modes -- the vsync is busted on all examples I make and try, and I can't see any config setting to fix the issue. I thought it might have been something else which needs changing in the asm, but now I'm beginning to suspect the emulator.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.