VOGONS


First post, by peterferrie

User metadata
Rank Oldbie
Rank
Oldbie

I see that DOSBox does not support int 2e calls.
It is used by Oh No demo by Zool (http://www.mbnet.fi/Apaja/Kopioi.asp?Tiedosto … /0/0/OHNO%2EZIP)
Here's some hack code to fix that. It's not the proper method but it works.
Run this and then you can run the nice demo.

.model tiny
.386
.code
org 100h

code_begin label near
mov ah, 49h
mov es, word ptr ds:[2ch]
int 21h
mov ah, 4ah
mov bx, (offset code_end - offset code_begin + 10fh) shr 4
int 21h
mov ax, 252eh
mov dx, offset int2eh
int 21h
mov bx, offset str
mov word ptr ds:[bx + 4], cs
mov word ptr ds:[bx + 8], cs
mov word ptr ds:[bx + 0ch], cs
mov ah, 31h
int 21h

int2eh proc near
push ds
push es
push cs
pop es
lods byte ptr ds:[si]
inc ax
movzx cx, al
add al, 3
mov di, offset line + 4
mov byte ptr cs:[di - 4], al
cld
rep movs byte ptr [di], byte ptr ds:[si]

copy_line label near
push cs
pop ds
mov ax, 4b00h
mov bx, offset str
mov dx, offset cmd
int 21h
pop es
pop ds
iret
int2eh endp

str dw 0
dw offset line
dw 0
dd 5ch
dd 6ch
cmd db "z:\command.com", 0
line db 0, "/c ", 7ch dup (?)

code_end label near
end code_begin

Reply 3 of 7, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

The gold of the aztecs

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 7 of 7, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

1201701571407.gif

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32