flat assembler
Message board for the users of flat assembler.

Index > DOS > B.S. : BlueScreen BSOD in DOS AKA AbortRetryFail INT $24

Author
Thread Post new topic Reply to topic
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 30 Jan 2009, 07:32
Code:
; ARFKILL.ASM - 116 Bytes FASM DOS TSR example
; B.S.: BlueScreenOfDeathEx (BSOD) in DOS AKA AbortRetryFailEx killer Very Happy
; http://board.flatassembler.net/topic.php?t=9740
; 2009-Mar-20 written: the smallest (116/48/32/0 Bytes) useful TSR ever !!!
; (CL) 2009 Public Domain - ABUSE at your own risk !!!

define pope  pop
define popef popf

format binary as "COM"
org $0100
use16

     mov   ax, $0240
     cmp   sp, ax
     jb    short no_memory
     mov   sp, ax             ; BOOM !!!
     mov   ah, $4A
     mov   bx, $28
     int   $21                ; Unhog
     jc    short no_memory
     mov   ah, $48
     mov   bx, 2
     int   $21                ; Hog it now Very Happy
     jc    short no_memory
     pushf
     cli
     cld
     dec   ax
     mov   es, ax
     inc   ax
     push  ax
     mov   si, junk_stuff
     mov   di, 1
     mov   cx, 38
     rep   movsb
     mov   ds, cx
     mov   si, $84
     movsw                    ; "off***"
     movsw                    ; "seg"
     mov   es, cx
     mov   di, $84
     mov   ax, 3
     stosw                    ; "off***"
     pope  ax
     stosw                    ; "seg"
     popef
     mov   dl, 79             ; "O"
     db    $B8      ; MOV AX, stuff
no_memory:
     mov   dl, 70             ; "F"
     mov   ah, 2
     int   $21
     mov   ah, $4C
     int   $21                ; Enjoy Very Happy
     ;--------

junk_stuff: db 8,0, 2,0, 0,0,0, "ARFSUCKS"

     mov   al, 3    ; $B0,3
     iret           ; $CF
     ;----
     pushf
     cli
     push  ax
     push  ds
     xor   ax, ax
     mov   ds, ax
     mov   [$90], ax          ; "off***"
     mov   ax, cs
     mov   [$92], ax          ; "seg"
     pope  ds
     pope  ax
     popef
     db    $EA      ; JMP FAR "seg":"off***"
     ;------------
    


This will permanently disable the annoying Abort Retry Fail "feature" of DOS (comparable to BlueScreening of Windoze) Smile

It's a TSR, and probably the smallest TSR ever (file size 116 Bytes, resident size 48/32/0 Bytes, depends how you measure).

Download now: http://board.flatassembler.net/download.php?id=4311 (4 KiB)

Image


Last edited by DOS386 on 06 May 2009, 02:55; edited 2 times in total
Post 30 Jan 2009, 07:32
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 22 Mar 2009, 01:52
It's about the criminal error handler INT $24 http://www.ctyme.com/intr/rb-4112.htm
Post 22 Mar 2009, 01:52
View user's profile Send private message Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 15 Jun 2009, 07:43
Thats pretty cool Smile , what made you want to make this?

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 15 Jun 2009, 07:43
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 15 Jun 2009, 15:19
> Thats pretty cool

Wow, an answer after 3 moths Shocked

> what made you want to make this?

The annoying behaviour. BTW, this feature is now also present in my UI21DEB
Post 15 Jun 2009, 15:19
View user's profile Send private message Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 841
Location: Jakarta, Indonesia
TmX 15 Jun 2009, 16:21
DOS386, what kind of DOS you are running? FreeDOS?
I might try DOS once again...
Post 15 Jun 2009, 16:21
View user's profile Send private message Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 15 Jun 2009, 19:44
DOS386: sorry, i just found this, it was interesting and didnt want to leave an interesting topic like this unreplied Very Happy

_________________
Oh that divide overflow. Just jumps out of the bushes every time to scare the day lights out of me.
Post 15 Jun 2009, 19:44
View user's profile Send private message Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1900
DOS386 16 Jun 2009, 10:52
> what kind of DOS you are running? FreeDOS?

YES, and EDR-DOS (my own done in FASM will need some more time ...)

> I might try DOS once again...

Please do Smile
Post 16 Jun 2009, 10:52
View user's profile Send private message Reply with quote
GhostXoPCorp



Joined: 13 Dec 2008
Posts: 199
Location: 01F0:0100
GhostXoPCorp 16 Jun 2009, 18:03
cool, your own dos? i have one but it isnt so great i dont have any drivers except for modifying the int vector, thats it. but i amaking my own interface to go with it Smile soon i wil make that interface a stand alone os. i am sensing a new thread Very Happy
Post 16 Jun 2009, 18:03
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.