flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution
Perhaps you can call a harmless int 0x21 function (like get_version) and see if you get a proper response.
|
|||
![]() |
|
DOS386
revolution wrote: Perhaps you can call a harmless int 0x21 function (like get_version) and see if you get a proper response. Bad idea ... "get_version" usually returns garbage ![]() But you can peek the date http://www.ctyme.com/intr/rb-2686.htm after confirming that INT $21 target is non-ZERO. Also you can check other values inside the PSP. _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
![]() |
|
revolution
DOS386 wrote: Bad idea ... "get_version" usually returns garbage |
|||
![]() |
|
bitshifter
How about passing a special value in a register (from booter).
Use a register that DOS normally sets to zero, and make it nonzero. Now program can check for special value and determine who it is... |
|||
![]() |
|
zhak
hm... interesting idea about setting a register. i.e. some magic number can be passed in ax, or in a pair of registers (ax:cx, for example) to double-check and exclude possible collisions
OFFTOPIC: DOS386's signature always makes me smile )) I'm a QA engineer and I hate high-level languages, so this "bug" is double-funny ) |
|||
![]() |
|
nop
@zhak offtopic
hehe i hate hlls too and even 100kb is tiny by todays bloatware standards! maybe dos386 should change his sig to 1Mb or 10Mb or even 100Mb ![]() |
|||
![]() |
|
zhak
yes, nobody takes care of software package size today. i laughed very loud some time ago when i loaded intel's web site and saw a banner stating that new Core processors are COMPATIBLE WITH VISTA!!! hahaha its now OS should be supported by hardware, not vice versa.
but, on the other hand, this possibly doesn't allow engineers to relax and they keep inventing more powerful hardware. anyway, sometimes i wish it were late 80's - early 90's when i write system code... things used to be a lot more easier that days ) |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.