mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-06 13:38:30 +09:00
hdk doc update
This commit is contained in:
@@ -4,5 +4,20 @@ Codes in the new computer hardware (e.g. EEPROM) are decrypted, decompressed
|
|||||||
then executed, so your program must be minified, compressed, then encrypted to
|
then executed, so your program must be minified, compressed, then encrypted to
|
||||||
be runnable, and this entire process is called "compiling".
|
be runnable, and this entire process is called "compiling".
|
||||||
|
|
||||||
Do note that this 'encryption' is highly insecure; its only purpose is to deter
|
Do note that this "encryption" is highly insecure; its only purpose is to deter
|
||||||
the casual attemps at cracking.
|
the casual attempts at cracking.
|
||||||
|
|
||||||
|
## From Your Readable Code to Binary
|
||||||
|
|
||||||
|
1. The source code is optionally minified. As minifying tool is not provided
|
||||||
|
(yet!), external tools must be used.
|
||||||
|
2. Pass your code to `compile.js` to compress and encrypt the source.
|
||||||
|
3. Pass the .bin file to the ROM writer to bake your code to the ROM.
|
||||||
|
|
||||||
|
## From The Binary to Readable Code
|
||||||
|
|
||||||
|
1. Download the code in the ROM to your working computer using ROM reader.
|
||||||
|
2. Pass your .bin to `decompile.js` to decrypt and uncompress the file.
|
||||||
|
|
||||||
|
Note that both processes use `enc.js` internally, so make sure the file exists
|
||||||
|
on the working directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user