Re: Getting NASM from C
From: Herbert Kleebauer (klee_at_unibwm.de)
Date: 05/29/04
- Next message: Evenbit: "Re: Getting NASM from C"
- Previous message: Robert Redelmeier: "Re: The neo-nazi Board mask falls down"
- In reply to: Frank Kotler: "Re: Getting NASM from C"
- Next in thread: Evenbit: "Re: Getting NASM from C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 May 2004 18:28:13 +0200
Frank Kotler wrote:
>
> Evenbit wrote:
>
> > Well, by my count, you used the SHIFT key 84 times in this post -- so I
> > guess the key IS useful after all, huh?
>
> Did you count those by hand, or have you got some "count the uppercase
> letters" code you'd like to share with us? :)
A 75 byte program in a first try (but it finds 95 and not 84 upper case
letters in your text):
@=$100
00000100: 66 31 ed eor.l r4,r4
00000103: b4 3f _20: move.b #$3f,m0
00000105: 50 move.w r0,-(sp)
00000106: 89 e2 move.w r7,r1
00000108: b9 0001 move.w #1,r2
0000010b: 31 db eor.w r3,r3
0000010d: cd 21 trap #$21
0000010f: 39 c1 cmp.w r0,r2
00000111: 58 move.w (sp)+,r0
00000112: 75 0c bne.b _10
00000114: 3c 41 cmp.b #'A',r0
00000116: 72 eb blo.b _20
00000118: 2c 5b sub.b #'Z'+1,r0
0000011a: 66 83 d5 00 addcq.l #0,r4
0000011e: eb e3 br.b _20
_10:
00000120: 66 89 e8 move.l r4,r0
00000123: be 015f move.w #buf+20,r5
00000126: 89 f1 move.w r5,r2
00000128: 66 31 d2 _30: eor.l r1,r1
0000012b: 66 f7 36 0147 divu.l k10,r1|r0
00000130: 80 c2 30 add.b #'0',r1
00000133: 4e dec.w r5
00000134: 88 14 move.b r1,(r5.w)
00000136: 66 09 c0 or.l r0,r0
00000139: 75 ed bne.b _30
0000013b: b4 40 move.b #$40,m0
0000013d: 89 f2 move.w r5,r1
0000013f: 29 d1 sub.w r1,r2
00000141: bb 0001 move.w #1,r3
00000144: cd 21 trap #$21
00000146: c3 rts.w
00000147: 0000000a k10: dc.l 10
buf:
The binary:
@echo off
echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>bat.com
echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>bat.com
echo T}{z]~@GwkAG@OEKcUt`]}@MqqAsy?seHA]_Phxr?@zAB`LrPEyoDt@Cj?>>bat.com
echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz>>bat.com
echo BAvAEDC?lpepO~sQxaHmp?@?`LZNW@x[{Kt@jq@teZkS?TBMebj1}gHmH@>>bat.com
echo 1`pepFveQv@FuCoA?MSGMH?HepsltlqH?xzPhkL?@oIB`KIBCK0x>>bat.com
bat.com >u_count.com
del bat.com
- Next message: Evenbit: "Re: Getting NASM from C"
- Previous message: Robert Redelmeier: "Re: The neo-nazi Board mask falls down"
- In reply to: Frank Kotler: "Re: Getting NASM from C"
- Next in thread: Evenbit: "Re: Getting NASM from C"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|