Debian Codegraph @

tools/README

raw
1 Hello,
2
3 This .ZIP contains the following files:
4
5 README This File
6 B.EXE Decompiler by Maxim & Wody
7 MKLINK.EXE Creates the link-dependencies U7 uses
8 RIP.COM Rips usecode to little files, and builds usecode-file by Wody
9 WUC.COM Usecode assembler by Wody
10 INTRINS1.TXT List of used intrinsic functions for U7BG by Wody
11 INTRINS2.TXT List of used intrinsic functions for U7SI by Wody
12 U7BGFLAG.TXT Flags used with PUSHF/POPF for U7BG by Wody
13 U7SIFLAG.TXT Flags used with PUSHF/POPF for U7SI by Wody
14 UCFORMAT.TXT Format of Usecode-file by various people
15 SOURCE.ZIP ZIP file of source for all programs included
16
17 Maxim is Maxim S. Shatskih, Email: [email protected]
18 Wody is Wouter Dijkslag, Email: [email protected]
19 (more credits in UCFORMAT.TXT)
20
21 If you want to do anything with it, you need the usecode file from
22 Ultima 7: The Black Gate or Ultima7: Serpent Isle. With this file, you can then
23 create a list by running B.EXE, which shows it on your screen. To redirect it
24 to a file, use B > FILE, where FILE is the file you want it to.
25
26 This file has a lot of functions in it, in the form of:
27
28 Number
29 Function #0 (0096H), offset = 00000000, size = 00a2, data = 005d
30
31 The most interesting part is number. If you run B with that number (B 0096)
32 you will get the source of that function, as far as is known. Off course, this
33 can be redirected too.
34
35 You can then change that function, and recompile it!
36
37 If you want to change a function, you first need to create compiled files and
38 an index file for all functions. You could do this by hand, but there is a
39 program for it, called RIP. You can rip a single function (RIP 0096), take all
40 functions out of the usecode (RIP ALL), only create an index (RIP INDEX), or
41 put all files and the index back together (RIP GLUE).
42
43 The compile is done by the program WUC. You run this by WUC infile outfile.
44 This means, if you have function 0096 written in file 0096.TXT, you need to run
45 WUC 0096.TXT 0096, but you could also write FUNCTION.TXT 0096 or something to
46 that effect.
47
48 If you just change a single function, and didn't change the size, you can put
49 it back with RIP PUT. Otherwise you have to rebuild the entire file with RIP
50 GLUE, and run MKLINK. When the usecode file is built, copy it over the old
51 version, and run U7. If you ran MKLINK, also copy the LINKDEP1 and LINKDEP2
52 files over the old versions. Then it's testing.. Don't forget to make backups!
53
54 Read the decompiled usecode to see how to program for U7. If you find out
55 anything (functions, meanings of opcodes, etc) which is unknown, or have any
56 comments, please tell Wouter so this package can become better!
57
58
59
60 Ultima & The Serpent Isle are trademarks or registered trademarks of ORIGIN
61 Systems, Inc.