MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   Support and How To (http://mympx.org/forum/support-how/)
-   -   Pascal and Assembler : Example (http://mympx.org/forum/support-how/42446-pascal-assembler-example.html)

WIZARD 27th Oct 2008 1:43 pm

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:35 am

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.

WIZARD 1st Nov 2008 4:29 am

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! :oops:

Th3_uN1Qu3 9th Nov 2008 10:14 am

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.

WIZARD 10th Nov 2008 5:04 am

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

Th3_uN1Qu3 11th Nov 2008 5:13 am

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.

WIZARD 2nd Dec 2008 11:54 pm

Quote:

Originally Posted by Th3_uN1Qu3";p=&quot (Post 53969)
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)

wannabe 24th Jan 2009 10:16 am

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


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