Contents
Tai-Pan
ZX Spectrum, 1987
Tai-Pan is a trading and adventure game set on the China coast, licensed from James Clavell. You arrive in Guangzhou on 1 January 1841 with no money at all, and set out to build a trading empire by buying ships, buying and selling tea, jade and silk, and sailing between 32 ports through pirates, typhoons and mutinies.
When the game ends, your cash and assets decide which of 20 titles you earn, from SLAVE to TAIPAN !
The game has two halves, the town and the sea. On the original tape each is a separate program that loads when you need it: setting sail loads the sailing program, and arriving in port loads the town again.
Controls
On the title screen, press 1 Sinclair joystick, 2 Kempston joystick, 3 cursor joystick or 4 keyboard, then 0 to start.
In town you walk left and right along the harbour street. Fire answers questions and closes messages ((PRESS FIRE)).
The screen


Getting started
You start with nothing, and almost everything costs money. Shops tell you YOU DO NOT HAVE ENOUGH CASH TO BUY ANYTHING HERE, and you can't leave port: YOU CANNOT SAIL OUT OF PORT WITHOUT A SHIP.
- Find Jin-Qua. In the back room of a restaurant you meet the merchant Jin-Qua, who offers to lend you $300,000. You give him half a medallion as your promise to repay.
- Buy a ship. Choose a Lorcha, a Clipper or a Frigate. Sometimes there are no ships available.
- Hire a crew and buy food. Without enough crew you can't sail, and a hungry crew mutinies.
- Buy cargo and sail. Trade tea, jade and silk between ports. Goods can only be sold at the Bank or the Warehouse.
- Repay Jin-Qua by 21 July 1841.


Jin-Qua and the loan
The loan is $300,000 and falls due on 21 July 1841. From that date, Jin-Qua's men come and take you back to Guangzhou: JIN-QUAS MEN ARRIVE AND TAKE YOU BACK TO GUANGZHOU TO REPAY YOUR LOAN.
| When you repay | What happens |
|---|---|
| You have the cash | Jin-Qua wishes you luck in your quest for riches. |
| Not enough cash | He takes some of your assets. |
| Not enough at all | He seizes your assets. |
| Never repaid | $300,000 is taken off your worth when the game ends. |
The town
Each port is a street of buildings you can visit. The game names these places: the Bank, Warehouse, Armoury, Inn, Supply Store, Gaol and restaurants. In a shop you choose to buy or sell, and the game tells you the price: IT WILL COST YOU or WE WILL PAY YOU. Prices are stored in the game's memory rather than fixed in the code, so they aren't listed here.needs verification







Goods and equipment
| Item | Type | Notes |
|---|---|---|
| Tea, Jade, Silk | Cargo | The trade goods. Sell them at the Bank or the Warehouse. |
| Lorcha, Clipper, Frigate | Ship | You need a ship to leave port. You can own more than one; with several in port you choose which to sail. |
| Crewman | Crew | You need enough crew to sail. Crew are also your fighters when boarding. |
| Box of food, Drink | Supplies | Set the crew's ration: a full week, 5, 3 or 1 day. Hungry crews mutiny; poorly fed crewmen can die of scurvy.needs verification |
| Musket, Box of musket shot, Box of cannon shot | Weapons | Cannon shot runs out: YOU HAVE RUN OUT CANNON SHOT. |
| Map and telescope | Navigation | Without a map you sail in uncharted waters; without a telescope you can't look ahead. |
Sailing
At sea you control the ship, set the height of your sails, and choose between ship control and combat. The lookout reports what's on the horizon:
- Nothing on the horizon
- A Noble House ship
- A Lorcha or a Clipper
- A pirate ship, which may attack you
Things that can go wrong at sea, all quoted from the game:
- YOUR SHIP HAS BEEN BLOWN OFF ROUTE
- YOUR CREW ARE GETTING HUNGRY, then YOUR CREW MUTINIES YOU'RE CAST ADRIFT
- ONE OF YOUR CREW DIES OF SCURVY
- YOUR SHIP HAS BEEN SUNK IN A TYPHOON
- YOUR SHIP SINKS YOU JUMP OVERBOARD, after which you may be PICKED UP BY A PASSING SHIP, or YOUR JOSS HAS RUN OUT. YOU'RE DEAD

Combat
Fights involve cannon fire and can end with you sinking the enemy, or with boarding, either you boarding them or them boarding you. Your crew fight with muskets.needs verification
| Outcome | Result |
|---|---|
| You sink them | YOU HAVE SUNK THE ENEMY SHIP |
| You kill the enemy captain | The ship joins your fleet, or if you don't have enough crew to man it, you strip its assets and take its cargo of tea, jade and silk. |
| You repel their boarders | YOU HAVE SUCCESSFULLY REPELLED THE ENEMY BOARDERS |
| They overrun you | YOUR SHIP HAS BEEN OVERRUN BY ENEMY BOARDERS |
| You lose too many men | YOU HAVE LOST TOO MANY CREWMEN TO CONTINUE THE BATTLE |
| You back off | YOU DECIDE DISCRETION IS THE BETTER PART OF VALOUR |
Ports
The game's 32 ports, in the order they are stored (Guangzhou is port 1). Spellings are the game's own.
- Guangzhou
- Macao
- Foshan
- Shenzhen
- Xiamen
- Fuzhou
- Ningbo
- Hangzhou
- Shanghai
- Suzhou
- Wuxi
- Zhenjiang
- Qingdao
- Yantai
- Tianjin
- Luda
- Nagasaki
- Sasebo
- Kitakyuso
- Haikou
- Jilong
- Nantong
- Weihai
- Tangshan
- Jinzhou
- Yingkou
- Lushun
- Kwangsu
- Kanazana
- Tokyo
- Okinawa
- Chaju Do
Titles
When the game ends, your cash is added to your assets, $300,000 is taken off if Jin-Qua's loan is still unpaid, and the total earns you a title: THIS HAS EARNED YOU THE TITLE OF. Four of the boundaries were tested by setting the money in an emulator and running the game's own end-of-game routine.
| Title | Rank | Final worth | Check |
|---|---|---|---|
| SLAVE | 1 | Under $2,000 | Tested: $1,999 |
| DRUNK | 2 | $2,000 – $10,999 | |
| BANKRUPT | 3 | $11,000 – $20,999 | |
| PEASANT | 4 | $21,000 – $40,999 | |
| CABIN BOY | 5 | $41,000 – $60,999 | |
| OARSMAN | 6 | $61,000 – $80,999 | |
| RIGGER | 7 | $81,000 – $100,999 | |
| DECK HAND | 8 | $101,000 – $150,999 | |
| LOOK OUT | 9 | $151,000 – $200,999 | |
| STEERS MAN | 10 | $201,000 – $300,999 | Tested: $250,000 |
| CADET | 11 | $301,000 – $350,999 | |
| 2ND MATE | 12 | $351,000 – $400,999 | |
| 1ST MATE | 13 | $401,000 – $500,999 | |
| CAPTAIN | 14 | $501,000 – $600,999 | Tested: $501,000 |
| SHIP OWNER | 15 | $601,000 – $750,999 | |
| TRADER | 16 | $751,000 – $1,000,999 | |
| MERCHANT | 17 | $1,001,000 – $2,000,999 | |
| MASTER MERCHANT | 18 | $2,001,000 – $4,000,999 | |
| MERCHANT PRINCE | 19 | $4,001,000 – $5,000,999 | |
| TAIPAN ! | 20 | $5,001,000 or more | Tested: $5,001,000 |




Gaol, gambling and death
- Gaol. You can be SENT TO GAOL. The game counts your offences, and the fourth is fatal: THIS BEING YOUR FOURTH OFFENCE YOU ARE SUMMARILY EXECUTED. What counts as an offence hasn't been traced yet.needs verification
- Restaurants. A meal costs $100. If you can't pay, you're thrown out.
- Gambling. Some back rooms are FULL OF MEN PLAYING A STRANGE GAME. You stake an amount (HOW MUCH ?) and pick a tile (SELECT TILE); you either win your stake back with winnings or lose it.needs verification
- Death. At sea your joss (luck) can run out. Mutiny, typhoons and sinking can all end the game.
Saving your game
Tai-Pan can save your progress to tape and load it again (FILENAME:, START TAPE THEN PRESS A KEY.). The saved game is 1,066 bytes holding your whole game, including your cash, assets and the date.
Trivia
- The town and the sea are two separate 23,420-byte programs on the tape, called TOWN and SAIL. Each loads into the same space, ending exactly where the game's interrupt table begins.
- Almost all the text is compressed. Messages can insert other messages, so common words like YOU, YOUR and RESTAURANT are stored once and reused everywhere.
- Money is kept as 10-digit decimal numbers (two digits per byte), so cash can reach $9,999,999,999.
- The title table counts in thousands of dollars, but the game skips the table entirely for anyone worth $6,000,000 or more and makes them Taipan straight away.
- The date is stored with January as month 0, and the year as the last two digits of 18xx.
- Port names are stored in fixed 9-letter slots, which may explain spellings like "Kitakyuso" and "Kanazana".
- The tape this guide was made from is a 1980s copy, not the original release. A copying device saved the whole of memory in one block (the loader is named TRANSTAPE), and the BASIC credits a club in Pamplona.
Notes for game makers
Tai-Pan is bigger than a 48K Spectrum: a trading town and an ocean of 32 ports. Here are the techniques and ideas in it that are worth learning from, with addresses for anyone reading along in the disassembly.
For developers
- Two programs, one space. The town and the sea are separate 23,420-byte modules, TOWN and SAIL, loaded into the same memory (#A281), ending exactly where the interrupt table begins (#83CF, #83E1).
- Its own tape loader. The game carries its own copy of the ROM loading routine (#85D3) and finds its modules by name, skipping any tape header that isn't its own type 7 (#858C).
- All the state in one block. Everything about your game lives in 1,066 bytes at #8700, below the module area. It survives every swap between town and sea, and saving is just writing that one block to tape (#84B6).
- Money in decimal. Cash is a 5-byte BCD number (10 digits, two per byte) with its own add, subtract and compare routines (#8D2D-#8D4A). It is easy to print and never suffers rounding.
- Messages inside messages. A message can insert other messages, so common words like YOU and RESTAURANT are stored once (#9EDE, control codes at #A001).
- Fixed-width names. The 32 port names sit in 9-character slots (#BA1C): finding a name is a single multiplication, at the cost of some squeezed spellings.
- Special cases in code, not data. Anyone worth $6,000,000 or more skips the title table and goes straight to Taipan (#82FB).
For designers
- Debt as the opening hook. You start with nothing except Jin-Qua's offer of a $300,000 loan, due on 21 July 1841. The deadline gives the whole game a shape, and repayment has graded outcomes, not just pass or fail.
- Two halves with different rhythms. The town is about trading, hiring and supplies; the sea is about sailing and fighting. The game alternates between them, and the memory split behind it becomes the game's pace.
- A ladder of titles instead of a score. Your final worth earns one of 20 titles, from Slave to Taipan, which is more memorable than a number.
- Consequences that remember. The game counts your offences, and the fourth is fatal.
- Logistics as the challenge. A ship needs a crew, a crew needs food, and the game warns of hunger, scurvy and mutiny. Preparing for a voyage is as much the game as the voyage.
- More than one way to win a battle. Sinking the enemy, killing their captain to take their ship or cargo, or backing off with "discretion" are all outcomes the game recognises.
About this guide
Cheat codes: both modules (town and sailing) were checked for every keyboard read: there is no cheat code, and the save/load filename is only compared with tape headers. The title screen accepts only 0-4 (tested).
Everything here was worked out from a disassembly of the tape: the game's text, the code that uses it, and tests in an emulator (the titles table, the loan date, the keys and loading the SAIL program). Facts marked needs verification come from the game's text or code but haven't been confirmed in play.
Tai-Pan belongs to its original creators. This is an unofficial fan guide.
Still to explore
Parts of the game this guide hasn't worked out yet, with what is known so far. They're the next things to dig into in the code, and include the main facts marked "needs verification" elsewhere on the page.
| Area | What we know | Still to find out |
|---|---|---|
| Sailing | The sea is a separate 23,420-byte program (SAIL). The lookout's reports and the dangers at sea are quoted from its text. | How the ship moves, how winds and sails work, how long voyages take, and how events are chosen. |
| Combat | The possible outcomes are known from the game's messages; cannon and muskets are involved.needs verification | How battles are decided, and what crew and weapons count for. |
| Prices | Prices are stored in memory, not fixed in the code.needs verification | How prices are set, and whether they change between ports or over time. |
| Ships | You can buy a Lorcha, a Clipper or a Frigate, and own more than one. | How they differ: cost, cargo space, speed and guns. |
| The sea map | The 32 ports are listed in the order they are stored. | Where each port is and how far apart they are. |
| Gaol | The game counts your offences and the fourth is fatal. | What counts as an offence. |
| Gambling | You stake an amount and pick a tile.needs verification | The rules and the odds. |
| Crew and supplies | You set rations of a week, 5, 3 or 1 day; the game warns of hunger, scurvy and mutiny.needs verification | How rations, hunger and scurvy are worked out. |
| The Armoury | Sells muskets, musket shot and cannon shot.needs verification | Confirm the stock and prices. |
| Joss | Your luck can run out at sea: YOUR JOSS HAS RUN OUT. | How joss is tracked. |
| Sprites and animation | The town is shown in screenshots only. | Rip the ships, sea and town graphics, and any animations. |