Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome to Koyaanisqatsi coding world! #1

Open
Alikberov opened this issue Jun 3, 2020 · 0 comments
Open

Welcome to Koyaanisqatsi coding world! #1

Alikberov opened this issue Jun 3, 2020 · 0 comments

Comments

@Alikberov
Copy link
Owner

Let's make the machine-code more humanity and chaos free!

________________________________________________________________________________
Machine Codes|Pseudo-Codes|Pseudo-Means|The Mnemonic|Descriptions and comments…
-------------|------------|------------|------------|---------------------------
0000 A9 AC 0F|    A₉ AC ₀F|For A₉,C₀   |MOV A9,C0   |Fork data from C₀ to A₉
0003    AB 0D|       AB ₀D|Dis A₉,B₀   |OR  A9,B0   |Disjunction between A₉ & B₀
0005    EF 00|       EF ₀₀|EiF (Halt)  |HLT'F       |Enable the Halting by False
0007 B9 BB 99|    B₉ BB 99|inc B₉,99   |INC B9,0x63 |Set B₉ to 63₁₆ / 99₁₀ value
000A …… …… ……| …… …… …… ……|……… ……… ……… |……… ……… ……… |………………………………………………………………………
--------------------------------------------------------------------------------
void main(void) {
    A9 = C0 | B0;   // B₀ and C₀ is zeroed by Reset-signal or "cold start"…
    if(A9 ≠ 0)      // If B₀:C₀ pointed the back-point to calling code
        halt();     // let's halting the system…
    Stack = 0x6300; // Else, by "cold start", we must to init the Stack-Base
    … … …
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant