Skip to content

Commit

Permalink
Update assembly instructions, fix v1.12EU
Browse files Browse the repository at this point in the history
  • Loading branch information
PluMGMK committed Jan 21, 2023
1 parent 938b8d1 commit d19e2b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ However, it also means that unlike the other implementations, a custom CD image

## Compilation

`TPLSTSR4` (unlike the previous version) is a plain old `MZ` executable, so you can assemble it with MASM, JWASM, UASM, etc.
`TPLSTSR4` (unlike the previous version) is a plain old `MZ` executable. However, because of the peculiar way I've used groups in the code, a lot of assemblers seem to miscalculate certain offsets. [JWasm](https://github.com/Baron-von-Riedesel/JWasm) v2.14 or greater will assemble the TSR correctly, and it can run on Windows, DOS or Linux.

```
uasm -mz TPLSTSR4.ASM
jwasm -mz TPLSTSR4.ASM
```

It will warn about no stack being defined, but it should still produce a working `TPLSTSR4.EXE` in DOS `MZ` format.
Expand Down
3 changes: 3 additions & 0 deletions TPLSTSR4.ASM
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@ setup_payload proc near uses gs ds dx es edi cx ax bx si
mov gs:[pPerdu],(1ADEEh-81508h) ; @ 0x1ADEE
mov gs:[pPlayTrack],(283D8h-81508h) ; @ 0x283D8

; This version has DRM that involves checking files on the CD
bts cs:[statusword],2

@@payload_fixedup:
; Next we need to open up Rayman's config file and get the driver ID
mov ax,3D00h ; OPEN read-only
Expand Down

0 comments on commit d19e2b5

Please sign in to comment.