myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > Support and How To

Pascal and Assembler : Example
View Poll Results: Will you join to us and try to create something (game,program,etc.) ?
Yes 2 100.00%
No 0 0%
Voters: 2. You may not vote on this poll

Reply
Post New Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old 27th Oct 2008, 1:43 pm
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:
Reply With Quote
  #2 (permalink)  
Old 30th Oct 2008, 11:35 am
New Member
 
Join Date: Oct 2008
Posts: 8
Default

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.
Reply With Quote
  #3 (permalink)  
Old 1st Nov 2008, 4:29 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default Re: Pascal and Assembler : Example

Don't worry! :P
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! ops:
__________________
Heroes of Might and Magic V - The Best Game In The World !
Try to play !
Reply With Quote
  #4 (permalink)  
Old 9th Nov 2008, 10:14 am
Senior Member
MPx Junkie
 
Join Date: Jun 2007
Posts: 465
Default

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. 8) 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...

I miss my Meizu M6SL... Currently rocking a Sony Ericsson w595 on Samsung in-ear phones. Does fine, but it's not a chipod...
Reply With Quote
  #5 (permalink)  
Old 10th Nov 2008, 5:04 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default

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 !
Try to play !
Reply With Quote
  #6 (permalink)  
Old 11th Nov 2008, 5:13 am
Senior Member
MPx Junkie
 
Join Date: Jun 2007
Posts: 465
Default

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

I miss my Meizu M6SL... Currently rocking a Sony Ericsson w595 on Samsung in-ear phones. Does fine, but it's not a chipod...
Reply With Quote
  #7 (permalink)  
Old 2nd Dec 2008, 11:54 pm
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default

Quote:
Originally Posted by Th3_uN1Qu3";p=&quot 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:
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 !
Try to play !
Reply With Quote
Sponsored Links
  #8 (permalink)  
Old 24th Jan 2009, 10:16 am
New Member
 
Join Date: Jan 2009
Posts: 4
Default Re: Pascal and Assembler : Example

But but but but....

Take the example of a rk2606A, which I have...

it is one thing to know which architecture you are dealing with, but it's an entirely other question what instructions they will result in..

and then yet another matter of how the chip is 'flashed', how the compiled instructions are transfered to the chip.

I personally would like an instructionset like:
ADDWF - 01 1111 dfff ffff

and then a programming specification, stating exactly what pins and timing to use
Reply With Quote
Reply

Sponsored Links

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pascal and Assembler : Example WIZARD General Discussion 5 24th Mar 2009 5:17 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 11:58 pm.


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