MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   General Discussion (http://mympx.org/forum/general-discussion/)
-   -   Pascal and Assembler : Example (http://mympx.org/forum/general-discussion/42451-pascal-assembler-example.html)

WIZARD 28th Oct 2008 9:45 am

Pascal and Assembler : Example
 
This example can be useful for you
if you want to start creating
new games and programs
on your Rockchip! :mrgreen:
(And adopt games and programs
from another Rockchips! 8) )


Pascal:

Begin
port[$70]:=$2E;
port[$71]:=$00;
port[$70]:=$2F;
port[$71]:=$00;
End.


Assembler:

mov dx, 070h
mov al, 02Eh
out dx, al
inc dx
xor al, al
out dx, al
mov dx, 070h
mov al, 02Fh
out dx,al
inc dx
xor al, al
out dx, al

mov ax, 4C00h
int 21h
Terminate


P.S. Maybe it's worth to create New Subforum "Programming on Assembler" ... :P

P.P.S. I have an idea! :idea: We can create Sega 16 bit Emulator
(or other game station emulator) and play in ALL Sega games!
It's more easier than to create the new one... :oops:

mzrainpl 30th Oct 2008 11:29 am

WIZARD -> you hopefully see that assembler is much more difficult than Pascal or C++. I believe that Benny wanted to do some NES emulator or something like this (he was certainly writing about PDF reader which would be awesome for me :D)

WIZARD 1st Nov 2008 4:36 am

Re: Pascal and Assembler : Example
 
Yes, I agree with you.
As you see, this program on pascal
have 6 strings, but on assembler :
nearly twenty! :shock:
But their structures are similar!
I think that creating Sega/Dendy/Nes Emulator
is better than creating OWN games,
because you will get ALL THE GAMES from these gamestations! :P
More logical... :wink:
Maybe I'll create something new... :roll:
(But I'm studying now, and have a problems with my free time...)

freddyzdead 23rd Mar 2009 9:00 pm

So, Wizard, what does this "program" actually do?

AleMaxx 24th Mar 2009 1:09 am

You'll have to write a x86-DOS emulator first to be able to run the above asm-code on yout RockChip.

WIZARD 24th Mar 2009 5:17 am

Re: Pascal and Assembler : Example
 
The program is just a sample, it can't do anything.
Also, this topic is outdated, please don't post here anymore.


All times are GMT -7. The time now is 8:22 am.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2