Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Tasm assembler homework![With donation!]

Status
Not open for further replies.

eelinker

Full Member level 5
Full Member level 5
Joined
Feb 12, 2006
Messages
267
Helped
16
Reputation
32
Reaction score
8
Trophy points
1,298
Location
PERSIA
Activity points
2,775
HW-2:
Develop an assembly program that switch your processor from 16-bit real mode (rm) to 32-bit protected mode (pm) and switch back to 16-bit rm again. In this program we want to demonstrate the basic capabilities of interrupts/exceptions in pm. For this, you should write an interrupt service routine (ISR) for the interrupt type of “0X20h” and do any perquisite tasks to make this int. operational. Please consider the following notes carefully:
After switching to pm, show the message of “The CPU is in PM now!” in the first line of screen.
You should invoke the software interrupt by “int 0x20h” command in pm.
In addition to GDT, you should fll the interrupt descriptor table for all the first 32 int. types and the int. type of 0x20h.
The ISR for 0x20h, just shows the message of “Int 0x20h was invoked!” in the second line of the screen and returns.
Restore the IDTR for rm and re-enable the rm’s interrupts when switching back to rm for proper operation of the system.
You also should write a common handler for all ints/exceptions with type of <=0x1fh in pm. This default handler just shows the message of “Some exception was occurred!” on the screen and freezes.
 

hey, you can't ask someone else to work on your homework here. It's prohibited :p.

However, I'll point you to the place with quite a lot of tutorials.

**broken link removed**
**broken link removed**
**broken link removed**
http://flatassembler.net/examples.php
http://flatassembler.net/download.php
http://flatassembler.net/docs.php

**broken link removed**

I have an article that might help you as well. But that's in GAS syntax.
http://www.geocities.com/mamanzip/A...ded_x86_Teaching_Tool.html#source_code_sample

Mind you that flatassembler is quite similar to tasm in many respects.

goodluck :D
 

    eelinker

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top