flat assembler
Message board for the users of flat assembler.

Index > DOS > A gift: Some Protect Mode Demo Programs for Dos

Author
Thread Post new topic Reply to topic
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 25 Aug 2003, 04:58
Dear All:
In the last two weeks, I have studied the Protect Mode. So writing three program for practicing it. I think that it maybe help you for study.
The overview of programs is belowing:
1.T10-3.ASM :None Privilege Switching in the TASK on Protect Mode
2.T10-4.ASM :Demo Control Between Different Privilege Levels By
Through Callgate
3.T10-5.ASM :Demo Task Switching and different Privilege Level Swiching
It must be exetute on the pure DOS enviroment. And it waste for me two weeks . The system hang up more times when debug it.
In the future, I will writing some programs for interrupt and exception, Page Protect and virutal 8086 Mode, and PAE mode.
The programs are writed by pure fasm , Thanks Priviav.
Post 25 Aug 2003, 04:58
View user's profile Send private message MSN Messenger Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 25 Aug 2003, 06:48
Thanks Kevin_Zheng, I'll give a look. Wink
Post 25 Aug 2003, 06:48
View user's profile Send private message Yahoo Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 09 Sep 2003, 09:23
Dear All:
The attached files are some demo program on the Protect Mode. I have added some new demo program and maybe help you for studing Protect Mode.
The files list is belowing:
Code:
;FileName       :T10-3.ASM
;Function       :None Privilege Switching in the TASK on Protect Mode
;FileName   :T10-4.ASM
;Function     :Demo call gates facilitate controlled transfers of program 
;           :control between different privilege levels.
;FileName   :T10-5.ASM
;Function     :Demo Task Switching and different Privilege Level Swiching 
;           :in the Task.
;FileName       :T10-6.ASM
;Function       :Demo Interrupt & Trap Handles on Protect Mode 
;FileName       :T10-7.ASM
;Function       :Simulation Interrupt & Trap Handles on Protect Mode 
    
[/code]


Last edited by Kevin_Zheng on 15 Sep 2003, 10:40; edited 1 time in total
Post 09 Sep 2003, 09:23
View user's profile Send private message MSN Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 15 Sep 2003, 09:49
Dear All:
I have added two progarams on the package. It is belowing:
:FileName :T10-8.ASM
:Function :Demo Privileged Instructions
:FileName :T10-9.ASM
:Function :Demo I/O Protection and I/O Sensitivity Instructions
In the future, I will adding some demo programs for page protection, V86 and PAE&PSE36 mode.
I think that it maybe helpping you.
And others, I hope that fasm supported belowing function:

Code:
;The Trap Gates from 0 to 0CH 
repeat      12-0+1
      DW      ErrBegin        
    DW      ErrCode_Sel
 DB      0
   DB      AT386TGAT
   DW      0
end        repeat

;The Trap Gate 0DH (#GP--General Protection Fault)
Int0D       Gate    0,GPTSS_Sel,0,ATTASKGAT,0
    

Because struct define doesn't support anonymous define, so I must use DB syntax on the repeat instruction. I understand why doesn't support it, because the struct define used the macro syntax, so the complier will not juge the anonymous struct and macro. So I recommend using "<>" on the struct define. It will solution the above question. It's used on masm/TASM for same as purpose.


Last edited by Kevin_Zheng on 28 Sep 2003, 15:03; edited 1 time in total
Post 15 Sep 2003, 09:49
View user's profile Send private message MSN Messenger Reply with quote
Tommy



Joined: 17 Jun 2003
Posts: 489
Location: Norway
Tommy 16 Sep 2003, 18:10
This is great! Thanks a lot!!! Cool

Keep up the good work! Wink
Post 16 Sep 2003, 18:10
View user's profile Send private message Visit poster's website Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 28 Sep 2003, 15:02
Dear All:
I have added one progaram on the package. It is belowing:
:FileName :T10-10.ASM
:Function :Demo 4K Bytes Pages Manager on Protect Mode

In the future, I will adding some demo programs for 4M&2M page protection, V86 and PAE&PSE36 mode.
I think that it maybe helpping you.


Last edited by Kevin_Zheng on 16 Oct 2003, 15:20; edited 1 time in total
Post 28 Sep 2003, 15:02
View user's profile Send private message MSN Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 16 Oct 2003, 15:18
Dear All:
Sorry, I found a bug on the t10-11.asm and I have fixed it. The newest t10-11.exe extended stronly robust on V86 mode. I have test almost of DOS program erunning OK on V86 mode.
Please used the newest package.
I have added one progaram on the package. It is belowing:
Code:
FileName      :T10-11.ASM
Function       :Demo Interrupt and Exception Handling in Virtual-8086 Mode
Notice          :
   On the first the T10-11.exe must execute on the pure   DOS eviroment.The maching state will changing V86 Mode, then executing [color=red]intff.com[/color] for return real mode.
    

In the future, I will adding some demo programs for 4M&2M page protection, VME and PAE&PSE36 mode.
I think that it maybe helpping you.


Last edited by Kevin_Zheng on 19 Oct 2003, 16:11; edited 1 time in total
Post 16 Oct 2003, 15:18
View user's profile Send private message MSN Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 19 Oct 2003, 16:10
Dear All:
I have added one progaram on the package. It is belowing:
Code:

FileName :T10-12.ASM
Function :Demo Interrupt and Exception Handling in VME V86 Mode
Notice :
On the first the T10-12.exe must execute on the pure DOS eviroment.The maching state will changing V86 Mode, then executing intff.com for return real mode.



In the future, I will adding some demo programs for 4M&2M page protection and PAE&PSE36 mode.
I think that it maybe helpping you.


Last edited by Kevin_Zheng on 23 Oct 2003, 10:39; edited 1 time in total
Post 19 Oct 2003, 16:10
View user's profile Send private message MSN Messenger Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng 23 Oct 2003, 10:36
Dear All:
The newest package supported more compatibilty for old PC about protect mode. Please using it.


Description:
Download
Filename: protect.zip
Filesize: 82.29 KB
Downloaded: 890 Time(s)

Post 23 Oct 2003, 10:36
View user's profile Send private message MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 25 Oct 2003, 09:04
Thanks Kevin_Zheng for the examples.Image

_________________
Code it... That's all...
Post 25 Oct 2003, 09:04
View user's profile Send private message Visit poster's website 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.