no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | cybiko:launchh8fromcyos [2009/11/27 17:54] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Running H8 native from Cyos====== | ||
+ | Credit to athlor for figuring this out. | ||
+ | Every bytecode program uses a small native program to launch the bytecode and it's embedded in the file ' | ||
+ | |||
+ | To demonstrate the idea 2 sample programs where made, one turns on the green LED and vibrator and the other turns them off. | ||
+ | |||
+ | < | ||
+ | Disassembly of sdk_main.e | ||
+ | --------------------------------- | ||
+ | 00000000 91AF 0002 ; | ||
+ | 00000004 0000 003C ; | ||
+ | 00000008 0000 0134 ; | ||
+ | 0000000C 0000 0000 ; | ||
+ | 00000010 0000 0029 ; | ||
+ | 00000014 0000 0020 ; | ||
+ | 00000018 0000 0000 ; | ||
+ | 0000001C 0000 0034 ; | ||
+ | 00000020 0000 0004 ; | ||
+ | 00000024 0000 0038 ; | ||
+ | 00000028 0000 0004 ; | ||
+ | --------------------------------- | ||
+ | 0000002C 0D03 | ||
+ | 0000002E 7A000000003C | ||
+ | 00000034 01006DF2 | ||
+ | 00000038 0F92 | ||
+ | 0000003A 0D31 | ||
+ | 0000003C 5E000020 | ||
+ | 00000040 0B97 | ||
+ | 00000042 5470 | ||
+ | --------------------------------- | ||
+ | 00000044 7A000000003C | ||
+ | 0000004A 79010002 | ||
+ | 0000004E 5E00002A | ||
+ | 00000052 5470 | ||
+ | --------------------------------- | ||
+ | 00000054 7A000000003C | ||
+ | 0000005A 5E000027 | ||
+ | 0000005E 5470 | ||
+ | --------------------------------- | ||
+ | 00000060 00 00 00 28 00 00 00 18 ( | ||
+ | 00000068 6F 72 64 69 6E 61 6C 73 o r d i n a l s | ||
+ | 00000070 00 43 79 57 69 6E 2E 64 C y W i n . d | ||
+ | 00000078 6C 00 66 69 6E 64 65 72 l f i n d e r | ||
+ | 00000080 2E 61 70 70 00 62 79 74 . a p p b y t | ||
+ | 00000088 65 63 6F 64 65 2E 64 6C e c o d e . d l | ||
+ | 00000090 00 83 00 00 22 03 00 00 ƒ " | ||
+ | 00000098 38 03 00 00 34 83 00 00 8 4 ƒ | ||
+ | 000000A0 2E 03 00 00 04 03 00 00 . | ||
+ | 000000A8 1A 03 00 00 2A 83 00 00 * ƒ | ||
+ | 000000B0 10 00 00 00 00 00 00 00 | ||
+ | Length: 177 bytes (b1h) | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | Original ' | ||
+ | |||
+ | 000000 | ||
+ | 000004 | ||
+ | 000008 | ||
+ | 00000C | ||
+ | 000010 | ||
+ | 000014 | ||
+ | 000018 | ||
+ | 00001C | ||
+ | 000020 | ||
+ | 000024 | ||
+ | 000028 | ||
+ | ---------------------------------------------------------- ; *Entry Point* | ||
+ | 00002C | ||
+ | 00002E | ||
+ | 000034 | ||
+ | 000038 | ||
+ | 00003A | ||
+ | 00003C | ||
+ | 000040 | ||
+ | 000042 | ||
+ | ---------------------------------------------------------- | ||
+ | 000044 | ||
+ | 00004A | ||
+ | 00004E | ||
+ | 000052 | ||
+ | ---------------------------------------------------------- | ||
+ | 000054 | ||
+ | 00005A | ||
+ | 00005E | ||
+ | ... | ||
+ | |||
+ | And my hacked versions: | ||
+ | |||
+ | --------------------------------------------------------- ; *ENTRY POINT* | ||
+ | 00002C | ||
+ | 000030 | ||
+ | 000034 | ||
+ | 000036 | ||
+ | 000038 | ||
+ | 00003A | ||
+ | 00003C | ||
+ | 00003E | ||
+ | 000040 | ||
+ | 000042 | ||
+ | ... | ||
+ | |||
+ | And: | ||
+ | |||
+ | --------------------------------------------------------- ; *ENTRY POINT* | ||
+ | 00002C | ||
+ | 000030 | ||
+ | 000034 | ||
+ | </ |