myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > General Discussion

Pascal and Assembler : Example
Reply
Post New Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old 28th Oct 2008, 9:45 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default 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... ops:
__________________
Heroes of Might and Magic V - The Best Game In The World !
Try to play !
Reply With Quote
  #2 (permalink)  
Old 30th Oct 2008, 11:29 am
New Member
 
Join Date: Oct 2008
Posts: 8
Default

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 )
Reply With Quote
  #3 (permalink)  
Old 1st Nov 2008, 4:36 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default 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...)
__________________
Heroes of Might and Magic V - The Best Game In The World !
Try to play !
Reply With Quote
  #4 (permalink)  
Old 23rd Mar 2009, 9:00 pm
Junior Member
 
Join Date: Mar 2008
Posts: 29
Default

So, Wizard, what does this "program" actually do?
Reply With Quote
  #5 (permalink)  
Old 24th Mar 2009, 1:09 am
Member
Keen on MPx players
 
Join Date: Sep 2007
Posts: 68
Default

You'll have to write a x86-DOS emulator first to be able to run the above asm-code on yout RockChip.
Reply With Quote
  #6 (permalink)  
Old 24th Mar 2009, 5:17 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default 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.
__________________
Heroes of Might and Magic V - The Best Game In The World !
Try to play !
Reply With Quote
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
Pascal and Assembler : Example WIZARD Support and How To 7 24th Jan 2009 10:16 am
Firmware is OK, but the code ASSEMBLER or C++ where is ? Nanni General Discussion 2 6th Nov 2007 6:59 am


All times are GMT -7. The time now is 2:15 am.


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

Designed by indiqo.media