flat assembler
Message board for the users of flat assembler.
Index
> DOS > need little help with resident (TSR) |
Author |
|
Vasilev Vjacheslav 03 Feb 2007, 16:48
hi community, i need little help, can someone add resident functionality to my little screen-saver program? i'm newbie in dos programming, thanks
ps. the resident must react to key-press and having timer for running screen-saver again very appreciated for you help
_________________ [not enough memory] |
|||||||||||
03 Feb 2007, 16:48 |
|
Vasilev Vjacheslav 09 Feb 2007, 10:09
can someone post simple resident program written in flat assembler?
|
|||
09 Feb 2007, 10:09 |
|
vid 09 Feb 2007, 10:45
uff. i think no one writes these anymore, as DOS is dead. You can find many in MASM and figure out how to rewrite them to FASM, it's easy.
|
|||
09 Feb 2007, 10:45 |
|
DOS386 10 Feb 2007, 02:24
Quote: as DOS is dead NO. Quote: You can find many in MASM and figure out how to rewrite them to FASM, it's easy. Right. Check CTMOUSE or other FreeDOS utils. Or SNARF. But most of it will be MA$M, or NASM at best, no FASM http://www.unet.univie.ac.at/~a0503736/php/drdoswiki/index.php?n=Main.Gallery?action=downloadman&upname=SNARF.zip _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Feb 2007, 02:24 |
|
rugxulo 10 Feb 2007, 04:35
|
|||
10 Feb 2007, 04:35 |
|
DOS386 10 Feb 2007, 06:04
http://maven.smith.edu/~thiebaut/ArtOfAssembly/CH18/CH18-1.html
About MA$M, I prefer to disassemble the binary (if exists, using NDISASM), and fix up this (looking into the source for label names and comments), rather than fixing the MA$M source code. The MA$M syntax is horrible, with all the messing-linking-up of the "sections" and "segments", and all the useless directives "assume", "tiny", "addr", "offset", ... Tomasz wrote ( http://board.flatassembler.net/topic.php?t=3197 ) : Quote: My assembler, generating the code in flat addressing space, was always outputting the code exactly in the same order, as it was defined in source. Incredible how long it took before someone "invented" such an obvious design _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
10 Feb 2007, 06:04 |
|
Japheth 10 Feb 2007, 13:43
>> My assembler, generating the code in flat addressing space, was always
>> outputting the code exactly in the same order, as it was defined in source. > Incredible how long it took before someone "invented" such an obvious design IMO this is one of FASM's biggest flaws. > and all the useless directives "assume", "tiny", "addr", "offset", ... none of these directives is "useless", as you would soon have to realize if you wrote something like FD Emm386 or a similiar project with modules written in different languages and using a segmented memory model. |
|||
10 Feb 2007, 13:43 |
|
rugxulo 11 Feb 2007, 01:20
Anyways, Vasilev, look at Simtel.net (under Home › Utilities/Drivers/System Files › Terminate and stay resident utilities) or Garbo's FTP for some utils.
|
|||
11 Feb 2007, 01:20 |
|
DOS386 11 Feb 2007, 01:57
Quote: IMO this is one of FASM's biggest flaws You can do better with MASM, I with FASM Quote: directives is "useless", as you would soon have to realize if you wrote something like FD Emm386 or a similiar project with modules written in different languages and using a segmented memory model. Well, if I had to fix up JEMM386, CWSDPMI or HDPMI32 or a similar project, I would completely disassemble it with NDISASM and port to FASM - no "C" at all Tomasz wrote (FASM source): Code: mov word [edx+3Ch],ax mov word [edx+18h],40h lea edi,[edx+40h] mov esi,default_stub mov ecx,default_stub_end-default_stub rep movs byte [edi],[esi] pop esi jmp stub_ok default_stub: use16 push cs pop ds mov dx,stub_message-default_stub mov ah,9 int 21h mov ax,4C01h int 21h stub_message db 'This program cannot be run in DOS mode.',0Dh,0Ah,24h rq 1 default_stub_end: use32 stub_from_file: push esi mov esi,edx call open_binary_file _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
11 Feb 2007, 01:57 |
|
rugxulo 11 Feb 2007, 02:15
Privalov wrote:
Perhaps he should say instead, "Use the DOS version or run this under HXRT w/ MSVCRT.DLL." |
|||
11 Feb 2007, 02:15 |
|
DOS386 11 Feb 2007, 03:17
Quote: run this under HXRT WOW !!! Exactly that's what I'll write into my PE stubs _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
11 Feb 2007, 03:17 |
|
rugxulo 11 Feb 2007, 19:53
Make sure you actually try it first (running FASM/Win32 console under HXRT: I still haven't, sorry, didn't mean to be misleading ... I was too stubborn/lazy to try digging up MSVCRT.DLL from my old Win95 install disks, but I'm fairly certain that it should work).
EDIT: Hey, Vasilev, also check out Toddy (free DOS cmdline editor TSR, like DOSKEY, w/ Wolfware ASM src). |
|||
11 Feb 2007, 19:53 |
|
rugxulo 05 Mar 2007, 22:18
Also check out the FreeDOS resident calculator.
EDIT: Screen saver for DOS? See MYSTIC.ZIP and Sleeper from WASM223.ZIP. |
|||
05 Mar 2007, 22:18 |
|
ATV 06 Mar 2007, 14:06
There seems to be little interest to write tsr programs.
I was looking some of my own (and very old) tools. They are written for ArrowsoftAsm/TASM syntax, They have been used under 486 with dos v6.22 Probably WinXP don't like some of my tricks. You are free to copy paste if you find something useful. Code: Program list of tsr_pak.zip clock - tiny tsr clock filelog - log dos file calls grabvesa - save capture to pcx with vga,vesa v1.2 (HotKey: <Right Shift> double click) hexview - memory hexdump utility (HotKey: Alt-F12) tsr_tet - tiny tsr tetris (HotKey: Ctrl+T) tsrdebug - tsr version of tiny debug (HotKey: Alt+F9) zoomvesa - zoom vesa v1.2 screen (HotKey: Ctrl+F11 and Ctrl+F12)
|
|||||||||||
06 Mar 2007, 14:06 |
|
Vasilev Vjacheslav 06 Mar 2007, 14:44
ok, here is my tsr screen-saver with password feature
_________________ [not enough memory] |
|||||||||||
06 Mar 2007, 14:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.