--------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEV00006Date: 10/14/97 From: FRANOIS DE MEY Time: 02:28am \/To: LEIGH MORRESI (Read 1 times) Subj: Bootable code.. offsets Hi coder, LM> mov ah,09 LM> mov dx,OFFSET string LM> int 21h LM> string db 'biteme$' LM> ok now, for you outthere, this just prints a string onto the screen, LM> but obvoisuly it wont work, becuase the offset is not at 7C00h, so to LM> correct this problem, would i have to change the DATA seg to LM> string db+7C00h LM> or would I have to chaange the to code to LM> mov dx,OFFSET+7C00h string LM> ???, what should happen here? Nothing! U write a boot sector => U don't have DOS!!!!!! => int 21h point on an IRET!!!! Use int 10h ( bios is always present ) Look this: mov si,OFFSET string call AffString ... AffString proc push ax mov ah,0ch ; Or another function, I don't remember by heart! ; look for teletype write AS@Loop: lodsb or al,al jz AS@End int 10h jmp AS@Loop AS@End: pop ax ret AffString endp string db 'biteme', 0 --Hoping it would be useful 2 U-- FeP ... Coding is so funny... --- Blue Wave/DOS v2.30 * Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEV00007Date: 10/25/97 From: AMAND TIHON Time: 09:42pm \/To: PAUL WANKADIA (Read 1 times) Subj: debugger Hello Paul, AT> I made a library for Flat-mode, and I can't debug it under AT> Turbo Debugger. When you have a code like this : mov EAX,CR0 AT> or EAX,1 mov CR0,EAX PW> You've just thrown the CPU into protected mode. I know... AT> <--- This line make the computer hang ! PW> I presume that you have not disabled all interrupts (including PW> NMI) and that you have not loaded IDT or GDT. THAT could be a problem. I did it. But the problem appeared when I tried to debug it under Turbo Debugger... I works nice when I run the prog "normaly". BUT : it was when I didn't know TD386... Now, no probs ! Thanks anyway. Bye, Amand. ... If at first you don't succeed, destroy all evidence that you tried. --- LHL v2.35 * Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEV00008Date: 10/14/97 From: AMAND TIHON Time: 03:10am \/To: DANIEL TROY (Read 1 times) Subj: extended memory Hello Daniel, DT> is there a way to use extended memory DT> for programs without using protected mode ? Yes, but with a short passage trough PM... It's called FLAT mode, unreal mode, big mode,... It allows you to program completely like in real mode, except that you have to change the size of the segments (you know, these fucking 64ko) to 4Gb ! To do this you must be in PM, but you go back in real mode just after that... I recently uploaded a library for FLAT, but between Belgium and Australia, I think there's about 20,000 km !!! (I mean : I don't want to pay the bill after calling an australian board ;-) DT> also how is it some programs that are bigger than 640k are able DT> to load? i mean sure they might switch into protected mode but DT> doesnt dos first try to load the whole thing into memory? For the PM, you're right. They have (at least) TWO code segment. One 16bits and the others in 32bits. The size of the EXE (in the header) is not the real size of your file but is smaller. (No more explanation : all my knowledge about that is theoretical). Bye, Amand. PS : Excuse my poor English... ... SYSTEM ERROR: press F13 to continue. --- LHL v2.35 * Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEV00009Date: 10/14/97 From: FRANOIS DE MEY Time: 02:39am \/To: DANIEL TROY (Read 1 times) Subj: tsr Hi coder, DT> i am making a tsr and would like to know how to unload/release tsr DT> the tsr is called by mouse driver as a user routine so i dont think DT> issuing a ah=4ch and int 21h would work any suggestions? Look at int 21h ah=3ch FeP ... Coding is so funny... --- Blue Wave/DOS v2.30 * Origin: Programmer's Paradise -Belgium- 32-10-813088 (2:293/2009) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00000Date: 10/25/97 From: IGOR COMBA Time: 11:51am \/To: SYLVAIN LAUZON (Read 1 times) Subj: debugger >> There's also The internal debugger that comes with GameTools; SL> where do i get the latest version of gametools from? I got it downloaded from a BBS (sorry, don't remember which one), but you can find it in several places in the Internet (try this one: http://home.worldonline.nl/~digi/tools.htm). The shareware version is fully functional, the only limitation is that it works in conventional RAM or XMS, and the registered version lets you use EMS, minimizing used memory. Nevertheless, using some good memory manager minimizes memory use anyway, so I use the XMS version quiete well. Igor --- * Origin: The pirates of Pestulon (4:850/9.38) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00001Date: 10/26/97 From: MARIUS BENDIKSEN Time: 07:24pm \/To: PAUL WANKADIA (Read 1 times) Subj: imul and idiv > >> read the friendly manual. > >> I always considered it to be "FAQing"... {snrk} > > FAQing, friendly, fine, friggin' what's the difference? ;-) > There's a difference between "fornicating" and "flatulent", is there not? Yes, but in the case of rtfm, it doesn't really matter which "diplomatic" replacement for the f-word you insert. -- SPEED 2.00 [NR]: -- Lord Nihil -- This is a microsoft-free zone. --- BBBS/NT v3.33 How * Origin: Circle of Protection +47 55961259 ISDN/V.34+ (2:211/37) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00002Date: 10/26/97 From: MARIUS BENDIKSEN Time: 07:24pm \/To: PAUL WANKADIA (Read 1 times) Subj: Redirection in protected > Unfortunately, it's incorrect in places. I've noticed. Specifically with regards to the difference between selector types, but probably in other areas as well. But, it shouldn't be a big problem to work around their typos. > Unfortunately, the purchasing of printed references is not a viable option > for me ... and the local libraries would never have that kind of thing ... That is most unfortunate, yes. In that case, you're pretty much forced to use Intel's reference. (I've not yet started actually /using/ paging, so my expertise lies elsewhere) -- SPEED 2.00 [NR]: -- Lord Nihil -- This is a microsoft-free zone. --- BBBS/NT v3.33 How * Origin: Circle of Protection +47 55961259 ISDN/V.34+ (2:211/37) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00003Date: 10/26/97 From: MARIUS BENDIKSEN Time: 07:24pm \/To: ALL (Read 1 times) Subj: GNU AS Is there any program (preferrably BSD or DOS) out there to convert sources from GNU AS to some TASM-like assembler (like NASM / MASM, etc) -+- # SPEED 2.00 [NR] # -- Lord Nihil -- This is a microsoft-free zone. --- BBBS/NT v3.33 How * Origin: Circle of Protection +47 55961259 ISDN/V.34+ (2:211/37) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00004Date: 10/26/97 From: MARIUS BENDIKSEN Time: 07:24pm \/To: PAUL WANKADIA (Read 1 times) Subj: DPMI question > would have had to show you all the ASM parts of PUNIX, in order to How far has the PUNIX project come? > for over half an hour, last night, trying to figure out why my boot-loader > was not working ... and it turns out that I was loading the tracks over the A nice routing which I found very useful to call on regular intervals until I was done with the first boot code was: dot: push ax mov ax, 0x0e2e int 0x10 ;Never mind the other registers, my BIOS pop ax ;ignores them. set BX=7 if you're paranoid. ret > boot-loader itself. Time to write some "loader loader move thyself" code. Shouldn't be more than a simple MOVSB from 07c0:0 to 1000:0 or somesuch. -- SPEED 2.00 [NR]: -- Lord Nihil -- This is a microsoft-free zone. --- BBBS/NT v3.33 How * Origin: Circle of Protection +47 55961259 ISDN/V.34+ (2:211/37) --------------- FIDO MESSAGE AREA==> TOPIC: 145 ASSEMBLY LANG. Ref: EEW00005Date: 10/26/97 From: MARIUS BENDIKSEN Time: 07:24pm \/To: TRAVIS HEIN (Read 1 times) Subj: protected mode considerat > mode"). Would I be completely nuts to try to re-write 32 bit routines for > *every* piece of hardware on the system? No, it would be quite okay, really. However, if you do not have the technical manuals- and experience in pmode coding- you might want to consider a visit to your local bookstore and/or certified psychiatrist :) > (by the way, has anyone else thought of this approach, and if so, has started > developing some kind of software like this to do this?) I've done a few abortive attempts at a BIOS-sourcer. Otherwise, nothing. It is more profitable to get some good .DOC's or .HTML's, however. -- SPEED 2.00 [NR]: -- Lord Nihil -- This is a microsoft-free zone. --- BBBS/NT v3.33 How * Origin: Circle of Protection +47 55961259 ISDN/V.34+ (2:211/37)