aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Recherche




Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
296 Abonnés
Webmaster - Infos
Visites

   visiteurs

   visiteurs en ligne

StatPays
En ligne

Colombia : 4
United States : 2
China : 4
Korea : 1
Sweden : 1
Canada : 1



Depuis le 11/02/2009

France:3249230
United States:1011519
United Kingdom:527659
Germany:290524
Italy:246122
Canada:178554
Belgium:163583
Japan:124722
Spain:102914
Russian Federation:91133
Switzerland:84533
Netherlands:83691
Mexico:76530
Brazil:66571
Argentina:59224
Czech Republic:51449
Poland:48950
Morocco:47300
China:44615
Colombia:40206
Hungary:38976
Turkey:35325
Australia:35093
Portugal:28839
Sweden:26606
Austria:23412
Taiwan:21649
Finland:20429
Denmark:20080
Venezuela:15533
India:13399
Romania:12814
Korea:11694
Greece:11424
Norway:11118
New Zealand:10788
Chile:10575
Luxembourg:10288
Slovakia:8642
Croatia:8271
Ireland:8085
Ukraine:8068
Indonesia:8016
Malaysia:7445
South Africa:6413
Uruguay:6370
Singapore:6222
Israel:5713
Peru:5160
Estonia:4555
Bulgaria:4407
Thailand:4204
Lithuania:4109
Cote D'Ivoire:3026
Madagascar:2920
New Caledonia:2580
Gibraltar:2569
Belarus:2187
Hong Kong:2146
French Polynesia:2145
Dominican Republic:1720
Philippines:1635
Saudi Arabia:1630
Latvia:1519
Serbia and Montenegro:1518
Pakistan:1488
Moldova:1444
Algeria:1412
United Arab Emirates:1370
Guatemala:1295
Slovenia:1253
Ecuador:1232
Bosnia and Herzegovina:987
Costa Rica:956
Tuvalu:924
Vietnam:915
Monaco:871
Paraguay:807
Egypt:786
Macedonia:541
Bolivia:499
Nicaragua:446
GoogleBot:440
Guadeloupe:435
Cyprus:403
Lebanon:372
Honduras:361
Cuba:361
Kazakstan:354
Netherlands Antilles:351
Syrian Arab Republic:287
Jordan:276
Mauritius:244
Albania:234
Kenya:234
Andorra:223
Ghana:223
Nepal:212
Georgia:202
Reunion:191
Mozambique:180
Congo:180
Uzbekistan:28
Jamaica:2
Zimbabwe:1
Iran:1
Trinidad and Tobago:
article.gifAstuces et adresses secrètes dans la mémoire du Sharp PC-1360

Sharp Pocket Computer 1360 - Competence Center

Tricks and secret addresses in the Sharp PC-1360 memory




Clues about how to find interesting memory addresses of the PC-1360



To really understand my tips and get to find yours, you will have to know the memory map for the Sharp PC-1360 :



Notice : almost all numbers will be given in hexadecimal format. The numbers in hexadecimal will be preceeded with a & sign, to distinguish them from decimal numbers. For example : &3F (hexadecimal) is equal to 63 (decimal).



ROM (Read Only Memory)



The ROM is divided in two :
  1. The Internal ROM in the CPU that contains the "heart" of the PC's Operating System.
  2. The External ROM which is divided into 8 blocks of the same size, 16 Kb each. These "Banks" will include all routines and programs to manage BASIC interpreter and all its instructions, the displaying of characters, etc...
It is important to know that the result given by the PEEK instruction for Internal ROM in CPU is not the real value of the requested bytes, but only the high byte of the requested address. To reverse engineer this ROM, you will need to use my ToolBox program that includes a special Machine Language Routine for reading the ROMs of the PC.

Here are some interesting calls to the Internal ROM :
  1. CALL &0000 : resets the PC
  2. CALL &0035 : power off the PC
  3. CALL &13C4 : stops the LCD display
  4. CALL &13C8 : starts the LCD display
Here is an interesting area of Bank #0 of External ROM : starting at address &58E9 we can find the description of all Basic instructions, in a table having the following structure :

Basic InstructionAddressExtra Code (?)Basic Token CodeHB (?)LB (?)ASCII Letters of Instruction
ASC&58E9192080065 83 67
AND&58F031610065 78 68
ABS&58F731530065 66 83
ATN&58FE31590065 84 78
ASN&590531570065 83 78
ACS&590C31580065 67 83
AREAD&59133799247865 82 69 65 68
.....................



External RAM (Random Access Memory)



It is in this part of the memory that the LCD display is managed. But not only, other informations can also be set.
  • Special LCD information



  • Management of Radian, Degree or Gradian



  • Main display (150 x 32 pixels)

    Basically, the LCD is mapped in 4 lines of 8 vertical pixels each (4 x 8 = 32 pixels). Each group of 8 vertical pixels is included in a byte.



    The LCD is mapped horizontally in 5 columns of 30 bytes (5 x 30 = 150 pixels) according to the following matrix (double mapping with a distance of 256 bytes between same column, and 512 bytes distance between two columns).

    Column #1Column #2Column #3Column #4Column #5
    Line #1Map #1
    Map #2
    &2800..&281D
    &2900..&291D
    &2A00..&2A1D
    &2B00..&2B1D
    &2C00..&2C1D
    &2D00..&2D1D
    &2E00..&2E1D
    &2F00..&2F1D
    &3000..&301D
    &3100..&311D
    Line #2Map #1
    Map #2
    &2840..&285D
    &2940..&295D
    &2A40..&2A5D
    &2B40..&2B5D
    &2C40..&2C5D
    &2D40..&2D5D
    &2E40..&2E5D
    &2F40..&2F5D
    &3040..&305D
    &3140..&315D
    Line #3Map #1
    Map #2
    &281E..&283B
    &291E..&293B
    &2A1E..&2A3B
    &2B1E..&2B3B
    &2C1E..&2C3B
    &2D1E..&2D3B
    &2E1E..&2E3B
    &2F1E..&2E3B
    &301E..&303B
    &311E..&313B
    Line #4Map #1
    Map #2
    &285E..&287B
    &295E..&297B
    &2A5E..&2A7B
    &2B5E..&2B7B
    &2C5E..&2C7B
    &2D5E..&2D7B
    &2E5E..&2E7B
    &2F5E..&2F7B
    &305E..&307B
    &315E..&317B
    Column #n = 512 + Column #n-1
    Map #2 = 256 + Map #1

    Notice : Each character is made of 6 bytes, so up to 150 / 6 = 25 characters could be shown on the LCD. But the editor (both in Run Mode and in Pro Mode) only displays 24 characters, the first 6 bytes never being used by the editor.

  • Graphics display

    In commands like LINE(X1,Y1)-(X2,Y2) and PSET(X1,Y1), here is where the information for coordinates can be found :

    Address
    X1[&30A8] + 256 x [&30A9]
    Y1[&30AC] + 256 x [&30AD]
    X2[&30AA] + 256 x [&30AB]
    Y2[&30AE] + 256 x [&30AF]

Date de création : 01/01/2003 @ 00:00
Dernière modification : 01/01/2003 @ 18:19
Catégorie :


Imprimer l'article Imprimer l'article

 
react.gifRéactions à cet article

Personne n'a encore laissé de commentaire.
Soyez donc le premier !

 
Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Sites web de la famille

News Amis
Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
^ Haut ^