jsurfer's language selection page > jsurfer's homepage (English)   > Pocket computer > Running PockePonga




Follow steps below to transfer "PockePonga" program written in Assembly language to your PC-E500/E550/E650 and run it
Last updated: February 10, 2013

What you will need....
1) '
pockeponga_to_be_transferred_to_pokecom.txt' file
2) Sharp PC-E500/E550/E650 pocket computer
3) Windows XP or Windows 7 PC with USB port
4) Cable to connect PC and the pocket computer
5) An assembler (I used Assembler program that is printed on pages from 215 to 222 in Japanese book called "PC-E650 PC-U6000 Katuyou Kenkyu" by Kougakusha.  In this document, I assume you already have "assembler.txt" on your PC.)
6) Any terminal emulator software (I use the software called "Tera Term" whcih is a freeware you can find on the net.)




STEP 1)
Connect PC and the pocket compuetr using USB cable.

STEP 2)
Turn on the pocket computer.


STEP 3)
Switch to Run mode.

(If you haven't yet reserved memory area in RAM for file saving, type
INIT "E:10K"
and press [Enter] key to reserve.)

(If you haven't yet reserved memory area in RAM for machine language usage, type
POKE &BFE03,&1A,&FD,&0B,&00,&28,&00
CALL &FFFD8
to reserve.  This will reserve 10K bytes in the RAM for machine language usage.  PockePonga requires only 1.6KB of memory but I reserved 10K for the future use.)



First, we will transfer the Assember (assembler.txt) to the pocket computer:

STEP 4)
Type this line:
POKE &BFD35,0,255,0,80
and hit [Enter] key.

STEP 5)
Type this line:
OPEN "1200,N,8,1,A,L,&H1A,N,S"
and hit [Enter] key.

STEP 6)
Type this line:
CLOSE
and hit [Enter] key.

STEP 7)
Type this line:
LOAD "COM:"
and hit [Enter] key.

STEP 8)
Launch "D:\Program Files (x86)\teraterm\ttermpro.exe" on your PC.  This is the freeware called "Tera Term."

STEP 9)
In the first screen, select "Serial port" radio button and then hit [Ok] button.

STEP 10)
From 'Settings' menu, select 'Serial Port.'

STEP 11)
Change settings to match below and then hit [Ok] button:

Port: COM4
Baud rate: 1200
Date: 8 bit
Parity: None
Stop: 1 bit
Flow control: hardware (I think selecting 'Xon/Xoff' will work too.)

Pause 10 millisecond after character
Pause 10 millisecond after line

STEP 12)
From 'File' menu, select 'Send File...', select the file you want to send and then hit [Open] button.
(NOTE: For the first time, because you want to send the assember, select 'assember.txt' file, hit [Open] button, and then proceed to the next step.
If this is the second time, because you want to send the 'PockePonga' program written in the Assembly language, select 'pockeponga_to_be_transferred_to_pokecom.txt', hit [Open] button, and then proceed to the next step.)

STEP 13)
After the file is transferred, the transfer dialog will diappear automatically.  You may want to wait for, say 30 seconds, to make sure all the lines are transferred, and then hit the [Break] button on the pocket computer.  Type 'LIST' and hit [Enter] key to see the program list to make sure all the lines in the program are transferred.  At this point, you may quit the 'Tera Term' software on your PC.


STEP 14)
Disconnect the USB cable as it may cause pocket computer to freeze.

STEP 15)
Type this line:
RUN
and hit [Enter] key.  You will see numbers counting on the screen.  After a few minutes, the pocket computer will make a beep sound and display "OK" on the screen.

STEP 16)
When "Ok" is displayed, it means the assembler program was loaded in the machine language area in RAM.  Type this line:
SAVEM "E:ASM",&HBEA9B,&HBFBFF,&HBEA9B
and hit [Enter] key to save.





Next, you will transfer 'PockePonga' program from PC to the pocket computer:

STEP 17)
Switch to the PROG mode and Type this line:
NEW
and hit [Enter] key to wipe out the program.

STEP 18)
Connect PC and the pocket computer using the USB cable, switch to RUN mode, and follow step 4 to step 14 above.




Finally, you will assemble PockePonga program using the assembler:

STEP 19)
Type this line:
CALL &HBEA9B
or this line:
LOADM "E:ASM"
and hit [Enter] key to launch the assembler.

STEP 20)
Type this line:
ASM
and hit [Enter] key to start to assemble.

STEP 21)
Vefify that following info is displayed on the screen:

- Pass 1
No error(s)
- Pass 2
No error(s)
End address 0BDA2F/0BDA2F

STEP 22)
Now type this line:
CALL &BD400
and hit [Enter] key to start the game.



@ .