flat assembler
Message board for the users of flat assembler.

Index > DOS > Smallest DOS hello world? ASCII CODE

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
Alphonso



Joined: 16 Jan 2007
Posts: 294
Alphonso
Ok, found this link. executable ascii. Seems like bitRAKE should know all about it Very Happy

It's a shame it's been put to bad use.
Post 13 Dec 2009, 10:46
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
I wrote a txt2com for DexOS you can see code here, it will convert to dos very easy .
http://dex.7.forumer.com/viewtopic.php?t=417&highlight=txt2com
Post 14 Dec 2009, 19:10
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
CWS (of CWSDPMI) recently mentioned using some self-executing ASCII in his configure.com for VMS (now renamed to configure.vms). With help from this thread (esp. the table made by windwakr), I hacked this up (purely 7-bit):

EDIT: Now with source (if you didn't feel like disassembling it)!

Code:
; hY1X-00P[h:!_)?)?CC)?)?h]1X-00PZh09X-00AdAc!DOS is not VMS!$

; CRC32 (w/ CR+LF):  836E89E7
; using FASM from http://board.flatassembler.net
; rugxulo _AT_ gmail _DOT_ com
; public domain, nenies proprajxo, Christus Rex!

; cpu 186
org 100h
magic equ ':!'

;and al,20h        ; dw '$ '
cmp sp,[bx+si]     ; dw '; '
push doscall+'00'
pop ax
sub ax,'00'
push ax
pop bx
push magic
pop di
sub [bx],di
sub [bx],di
inc bx
inc bx
sub [bx],di
sub [bx],di
push msg+'00'
pop ax
sub ax,'00'
push ax
pop dx
push '09'
pop ax
sub ax,'00'
doscall dw (021CDh+magic*2) and 0FFFFh, (020CDh+magic*2) and 0FFFFh
msg db '!DOS is not VMS!'
msg_end db '$'     ; do not change!
linefeed db 13,10  ; to please nitpicky text editors
    


Laughing
Post 11 Apr 2010, 06:17
View user's profile Send private message Visit poster's website Reply with quote
bttr



Joined: 21 Oct 2003
Posts: 16
Location: Berlin, Germany
bttr
Old thread, but you might be interested in CM3 by Laura Fairhead: http://lf.8k.com/TOOLS/TOOLS.HTM
Post 11 Sep 2010, 20:15
View user's profile Send private message Visit poster's website Reply with quote
prino



Joined: 24 Jun 2004
Posts: 17
prino
http://groups.google.com/group/alt.lang.asm/browse_frm/thread/a275cf59c1d8030a/e56bed2aa7689eb1?hl=en&q=#e56bed2aa7689eb1

or this - see http://www.google.com/search?q=ptt007.zip

VZNNXPH555750K4PP5DM3D01D0X5AC3D21D2XP559550K4

save as ASCII.COM

As debug source:

Code:
NASCII.COM
A100
PUSH SI
POP  DX
DEC  SI
DEC  SI
POP  AX
PUSH AX
DEC  AX
XOR  AX,3535
AAA
XOR  AX,4B30
XOR  AL,50
PUSH AX
XOR  AX,4D44
XOR  AX,[SI+30]
XOR  [SI+30],AX
POP  AX
XOR  AX,4341
XOR  AX,[SI+32]
XOR  [SI+32],AX
POP  AX
PUSH AX
XOR  AX,3935
XOR  AX,3035
DEC  BX
DB   34

RCX
2E
W
Q

    
Post 11 Sep 2010, 21:21
View user's profile Send private message Visit poster's website Reply with quote
DVicthor



Joined: 13 Sep 2013
Posts: 3
Location: Nigeria
DVicthor
Instead of adding 100h to the offset of .msg, you can just ORG 100h and the corrections will be made.
Post 16 Sep 2013, 21:41
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1901
DOS386
Post 22 Sep 2013, 18:46
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.