myMPxPlayer.org      
Home • Forum • Downloads • Gallery/Photos • Check your PM • Log in • Register
         
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 ]


User Block
Username:

Password:

 Remember me



I forgot my password

Don't have an account yet?
You can register for FREE


Pascal and Assembler : Example
Post new topic

Reply to topic
 
Poll :: Will you join to us and try to create something (game,program,etc.) ?

Yes
100%
 100%  [ 1 ]
No
0%
 0%  [ 0 ]
Voted : 1
Total Votes : 1
Poll expires in : 30 Days, 18 Hours, 54 Minutes


Author Message
WIZARD
Keen on MPx players
Keen on MPx players

United Kingdom UK Wales
PostPosted: Mon Oct 27, 2008 4:43 pm   Post subject: Loot 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

Download Post  No rating  
mzrainpl

Poland
PostPosted: Thu Oct 30, 2008 2:35 pm   Post subject:   Back to top 

I would like to join but my only experience is programming microprocessors with C++ and BASCOM languages. I can't do anything with assembler it's too difficult for me.

Download Post  No rating  
WIZARD
Keen on MPx players
Keen on MPx players

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

Don't worry! Razz
If you have learned these languages
it will be much more easier to learn the Assembler
than to start programming from the Zero.
For example, I know Pascal only! Embarassed

_________________
Heroes of Might and Magic V - The Best Game In The World ! Cool
Try to play ! Wink
Download Post  No rating  
Th3_uN1Qu3
MPx-a-lolics Anonymous
MPx-a-lolics Anonymous

Romania European Union
PostPosted: Sun Nov 09, 2008 1:14 pm   Post subject:   Back to top 

Pascal is a pretty old language, and Assembler is pretty damn hard for me to learn, although i'd like to learn it sometime as it's the language all cracking is done in. Cool I know a bit of Python that i found too slow and started learning a bit more C++ (besides the useless Borland crap i learn at school). I may help with stuff in the future, but i don't have that much coding knowledge right now, i'm still working on a tool for my own use.

What you should know is that the MPx players use a different architecture. So assembler code written on a PC is very likely to NOT work on the MPx player. With Pascal or C++ there are better chances of succeding.

_________________
For my dreams i hold my life...

MEIZU M6SL Cool <> black <> 4GB <> 2.4 inch TFT <> Touchpad <> XviD 20FPS <> 25 hours battery (music) <> Wolfson DAC Very Happy <> Sony earbuds
Resigned: SigmaTel STMP3504 <> 2GB <> 1.5 inch TFT
Bye-bye Actions! (at least for now)
Download Post  No rating  
WIZARD
Keen on MPx players
Keen on MPx players

United Kingdom UK Wales
PostPosted: Mon Nov 10, 2008 8:04 am   Post subject:   Back to top 

My friend said:
If you know Assembler for PC,
it would be easy to learn Assembler for device!
=)

_________________
Heroes of Might and Magic V - The Best Game In The World ! Cool
Try to play ! Wink
Download Post  No rating  
Th3_uN1Qu3
MPx-a-lolics Anonymous
MPx-a-lolics Anonymous

Romania European Union
PostPosted: Tue Nov 11, 2008 8:13 am   Post subject:   Back to top 

Well, depending on the players you'll have to learn either Z80 assembler or ARM assembler. Z80 cores are found in cheaper devices (particularly Actions players), but ARM seems to be the way everyone is headed in.

However it would make more sense to write in a portable language so we can develop on a PC and then port the code to the player. But since that probably isn't possible due to firmware issues, we'd have to code an emulator for the PC then work our way around to developing games.

Any way we take it, the next generation of players will be out before we make any significant progress.

_________________
For my dreams i hold my life...

MEIZU M6SL Cool <> black <> 4GB <> 2.4 inch TFT <> Touchpad <> XviD 20FPS <> 25 hours battery (music) <> Wolfson DAC Very Happy <> Sony earbuds
Resigned: SigmaTel STMP3504 <> 2GB <> 1.5 inch TFT
Bye-bye Actions! (at least for now)
Download Post  No rating  
WIZARD
Keen on MPx players
Keen on MPx players

United Kingdom UK Wales
PostPosted: Wed Dec 03, 2008 2:54 am   Post subject:   Back to top 

Th3_uN1Qu3 wrote (View Post): ›
However it would make more sense to write in a portable language so we can develop on a PC and then port the code to the player. But since that probably isn't possible due to firmware issues, we'd have to code an emulator for the PC then work our way around to developing games.

Any way we take it, the next generation of players will be out before we make any significant progress.


I disagree with you! Evil or Very Mad
I have Rockchip (RK2606) player,
and I haven't million dollars,
I will never buy the new player
if I have my old player working!

And, if I will have enough time to create something useful,
I will create ONLY for RK2606 Rockchip,
and I will not create something for other models!
(because I can't use software which was created for another models)

_________________
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 can download files in this forum



Protected by phpBB Security © phpBB-Amod :: phpBB Security ©  Has Blocked 182,407 Exploit Attempts.
Site running IntegraMOD with phpBB :: FI Theme :: All times are GMT - 4 Hours ]
[Page generation time: 0.7507s (PHP: 61% | SQL: 39%) | SQL queries: 98 | GZIP enabled | Debug off]

MyMPxPlayer.org hosted by Webair.