Windows Mobile Developer Network Forum

Windows Mobile Developer Network Forum
It is currently Thu Sep 09, 2010 3:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: The smallest program for Pocket PC
PostPosted: Tue Oct 17, 2006 9:22 am 
Offline
Site Admin

Joined: Sun Mar 30, 2003 4:54 pm
Posts: 695
<img src="/images/news/clipart/smallprog.gif" align="left" width="120" height="160" hspace="4">Alexander Dovgaluk has created the smallest program for Pocket PC I have ever seen. How big is the program? Only 352 bytes. Despite of its small size it has rich functionality. Well, not really. Still the program is almost as good as a classic "Hello World". It salutes you with a message box saying "Msg".

The program features a few tricks such as moving code to the MZ header and using SysCall directly for calling system APIs. Interested in details? Download the program or see the complete ARM assembly language listing below:
Code:
CODE32

   EXPORT   |Main|

   AREA    |.text|, CODE, ARM

|Main| PROC

   stmfd sp!, {r0-r8,lr}

   add r0, sp, #4
   str r0, [sp]
   mov r0, #0
   add r1, pc, #0x18
   mov r2, r1
   mov r3, #0x40
   mov lr, pc
   ldr pc, |MessageBoxW|
   add sp, sp, #0x20

   ldmfd sp!, {pc}

   ENDP

|MessageBoxW| dcd (0xF0010000 - (0x11 << 8 + 0x32) * 4)

|msg|   dcb "m", 0, "s", 0, "g", 0, 0, 0

   END

_________________
Yaroslav Goncharov
Spb Software House, http://spbsoftwarehouse.com
Pocket PC Developer Network, http://pocketpcdn.com


Last edited by Yaroslav Goncharov on Thu Feb 08, 2007 4:08 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 25, 2006 8:51 am 
Offline

Joined: Mon Oct 16, 2006 7:11 pm
Posts: 13
Location: Novgorod the Great, Russia
i created same program with smaller size :)
now it is only 288 bytes and have the same functionality.


Top
 Profile  
 
 Post subject: What was the make options?
PostPosted: Wed Nov 01, 2006 7:33 pm 
Offline

Joined: Wed Nov 01, 2006 7:31 pm
Posts: 4
Thanks


Top
 Profile  
 
 Post subject: Oh I see...
PostPosted: Wed Nov 01, 2006 7:57 pm 
Offline

Joined: Wed Nov 01, 2006 7:31 pm
Posts: 4
NM about the make file. I see what you are up to :) Messing with the PE header...


Top
 Profile  
 
 Post subject: can you...
PostPosted: Wed Nov 01, 2006 8:14 pm 
Offline

Joined: Wed Nov 01, 2006 7:31 pm
Posts: 4
also upload the even smaller version?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 24, 2006 11:50 am 
Offline

Joined: Fri Nov 24, 2006 11:47 am
Posts: 1
can anybody tell me, how can i program assembly for ARM chip right in pocketPC


Top
 Profile  
 
 Post subject: contact me off list and I can get you started...
PostPosted: Tue Dec 05, 2006 7:14 pm 
Offline

Joined: Wed Nov 01, 2006 7:31 pm
Posts: 4
seth & fogieonline with a dot and a com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 7:47 am 
Offline

Joined: Tue Jun 12, 2007 7:42 am
Posts: 1
how to link it to exe file?

use armasm [source file] will got a .obj file,but how to link it?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 22, 2007 2:14 pm 
Offline

Joined: Sun Jul 16, 2006 11:28 am
Posts: 55
Location: Third planet of the Solar System
hey sethfogie,
couldnt fild the link :(


Top
 Profile  
 
 Post subject: appunto letteratura inglese
PostPosted: Mon Aug 20, 2007 11:30 pm 
Offline

Joined: Mon Aug 20, 2007 2:46 pm
Posts: 14
calcolatore love x scopata bosco video clip x timbratura apparecchiatura elettrica x baffi finti x maturita argomento prima prova x aquilone tecnica volo x foto gay attivo x organizzazione evento banchetto x non appena x avviare bed and breakfast x baby sitter calabria x bussola elettrodomestico x appunto rete x fiat bravo tuning x bora 2 barca x apple macbook x with the beatles x via appia nuova x fornitura bevanda pub osteria locale x villa antica x struttura microscopica materia atomo molecole x un fiume amaro x bo albero genealogico x kuala lumpur botanica brasserie x blocchi cad ringhiera x agriturismo castel bolognese x invalido civile assunzione personale x ana and anticorpi x antenna gps cellulare x appunto letteratura inglese


Top
 Profile  
 
 Post subject: diciannovenni vogliose
PostPosted: Sat Sep 15, 2007 11:14 am 
Offline

Joined: Mon Aug 20, 2007 2:46 pm
Posts: 14
absat key x 4you gratis suoneria x configurazione outlook 2003 fastweb x bravo piaggio club x immmagini winx enchantix da colorare x costo cambio pneumatici e bilanciatura x coreane nude x aggiornamenti mappe garmin piacenza x giovanili viterbese calcio 2007 2008 x pokemon per vbagx x esposizione poltrone relax genova x inculate con vecchie x demolizioni trattori agricoli x rai code seca x regalo pastore tedesco a palermo x trans vigevano x bellissime donne brune nude x spose di cantanti x batterie per orologi ingrosso x feliway diffusore vendita x dediche per gli sposi x 82801db audio driver x gabrielle scollay x ricetta cialde montecatini x massaggiatrici sexy a viterbo x carabine diana libera vendita prexxo x pinze 3 175 x impostare emule connessione umts x art sport viaccess 2 keys x diciannovenni vogliose


Top
 Profile  
 
 Post subject: catturare area schermo con photoshop
PostPosted: Sun Sep 23, 2007 1:26 am 
Offline

Joined: Sun Aug 19, 2007 6:53 pm
Posts: 19
venditore auto antonini milano x ikea mobile portacomputer x thais particolare il mercurio x italia esort vecchia x chat erotica gratis x come vedere porno satellite x filmati donne nude gratis x primiero boninsegna x alessandro nesta in rehab x siti gratis tardone italia x brutale nera opaca x sborra calda x esposizioni angora turco x come cambiare gli sfondi dreamlinux x cookaforum etichette x audio tifo livorno x ragazze in webcam gratis x archivio foto gratis x brutale prezzo x antenna attiva dvb t x thermopal x carta eritrea x cisti cutanea gatto x voyeur blog x foto seni ragazze x ettore di gennaro x erotismo video free x girl porno x quotazione auto d epoca x catturare area schermo con photoshop


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 31, 2008 12:29 am 
Offline

Joined: Mon Mar 31, 2008 12:25 am
Posts: 1
nbcool wrote:
how to link it to exe file?

use armasm [source file] will got a .obj file,but how to link it?



I still cant figure out how to link it to exe file?

_________________
http://freebiesms.co.uk


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 5:52 am 
Offline

Joined: Wed Apr 23, 2008 5:49 am
Posts: 3
Well, not really. Still the program is almost as good as a classic "Hello World". It salutes you with a message box saying "Msg".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group