myMPxPlayer.org
MyMPxPlayer.org has now moved to
MyMPx.org
     
Home • Forum • Downloads • Gallery/Photos • Check your PM • Log in
         
Board Navigation
Go to the homepageHome
Index of the forum.Forum
Downloads
View uploaded imagesGallery/Photos
Check articles uploaded to the websiteKnowledge Base
Links CategoriesLinks
Donate to myMPxPlayer.orgSupport Us

Search through forums.Search Site
Search through downloadsSearch Downloads

Frequently Asked Questions.FAQ
Read the rules of this websiteRules
View website statisticsStatistics
See who is online at this time.Online Users
Members of our staffStaff

Advertisement

Chatbox

There are 0 user(s) on chat now:

[ Login to join chat ]


Pascal and Assembler : Example
Post new topic

Reply to topic
 
Author Message
WIZARD
MPx Junkie
MPx Junkie

United Kingdom UK Wales
PostPosted: Tue Oct 28, 2008 11:45 am   Post subject: Cool Pascal and Assembler : Example Back to top 

This example can be useful for you
if you want to start creating
new games and programs
on your Rockchip! Mr. Green
(And adopt games and programs
from another Rockchips! Cool )


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" ... Razz

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... Embarassed

_________________
Heroes of Might and Magic V - The Best Game In The World ! Cool
Try to play ! Wink
Download Post  No rating  
mzrainpl

Poland
PostPosted: Thu Oct 30, 2008 1:29 pm   Post subject:   Back to top 

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 Very Happy)

Download Post  No rating  
WIZARD
MPx Junkie
MPx Junkie

United Kingdom UK Wales
PostPosted: Sat Nov 01, 2008 6:36 am   Post subject:  Re: Pascal and Assembler : Example Back to top 

Yes, I agree with you.
As you see, this program on pascal
have 6 strings, but on assembler :
nearly twenty! Shocked
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! Razz
More logical... Wink
Maybe I'll create something new... Rolling Eyes
(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 ! Cool
Try to play ! Wink
Download Post  No rating  
freddyzdead
Keen on MPx players
Keen on MPx players

Australia
PostPosted: Mon Mar 23, 2009 11:00 pm   Post subject:   Back to top 

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

Download Post  No rating  
AleMaxx

Germany
PostPosted: Tue Mar 24, 2009 3:09 am   Post subject:   Back to top 

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

Download Post  No rating  
WIZARD
MPx Junkie
MPx Junkie

United Kingdom UK Wales
PostPosted: Tue Mar 24, 2009 7:17 am   Post subject: Note Re: Pascal and Assembler : Example Back to top 

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 ! Cool
Try to play ! Wink
Download Post  No rating  
Sponsored Links
Display posts from previous:      
 


 Jump to:   

  View previous topic View printer-friendly version Search Display number of posts for each poster in this topic Export topic thread to a text file View next topic

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum



Protected by phpBB Security phpBB-Amod :: phpBB Security ©  Has Blocked 229,168 Exploit Attempts.
Site running IntegraMOD with phpBB :: FI Theme :: All times are GMT - 4 Hours ]
[Page generation time: 0.3443s (PHP: 55% | SQL: 45%) | SQL queries: 91 | GZIP enabled | Debug off]

MyMPxPlayer.org hosted by Webair.