Sunday, 23 January 2011
Sunday, 16 January 2011
CS401 Assignment#04 Sol
Modify multitasking and dynamic thread registration example (11.2) such that • It displays a rotating bar on top left corner of the screen (as in Example 11.1). • Also, if we press “S (both small and caps)”, it will generate new process which will display rotating bars on screen in next column from the previous one. • And if “Q (both small and caps)” is pressed from keyboard it will restore every thing to normal as it was before the multitasking kernel was there. You can generate maximum up to 20 processes. After 20 processes no new process will be created if “S (both small and caps)” will be pressed from keyboard
Solution:
[org 0x0100]
jmp start
; Original Registers:
;ax, bx, cx, dx, si, di, bp, sp, ip, cs, ds, ss, es, flags
; 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26
; PCB layout:
;ax, bx, cx, dx, si, di, bp, sp, ip, cs, ds, ss, es, flags, next, dummy
; 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26 , 28 , 30
originalstate: times 14 dw 0
oldtimer: dd 0
pcb: times 20*16 dw 0 ; space for 20 PCBs
stack: times 20*256 dw 0 ; space for 20 512 byte stacks
nextpcb: dw 1 ; index of next free pcb
current: dw 0 ; index of current pcb
Solution:
[org 0x0100]
jmp start
; Original Registers:
;ax, bx, cx, dx, si, di, bp, sp, ip, cs, ds, ss, es, flags
; 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26
; PCB layout:
;ax, bx, cx, dx, si, di, bp, sp, ip, cs, ds, ss, es, flags, next, dummy
; 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26 , 28 , 30
originalstate: times 14 dw 0
oldtimer: dd 0
pcb: times 20*16 dw 0 ; space for 20 PCBs
stack: times 20*256 dw 0 ; space for 20 512 byte stacks
nextpcb: dw 1 ; index of next free pcb
current: dw 0 ; index of current pcb
Friday, 31 December 2010
Read the following lines of code. It will read the mask register from port 0x21 and then set the 1st bit in the register. As soon as it is written back to port 0x21; IRQ 0 which is derived by a timer device will be disabled
Question#2
Read the following lines of code. It will read the mask register from port 0x21 and then
set the 2nd bit in the register. As soon as it is written back to port 0x21; Keyboard will be
disabled that is connected to IRQ1.
in al, 0x21 ; read interrupt mask register
or al, 2 ; set bit for IRQ1
out 0x21, al ; write back mask register
Take out line 2 i.e.
or al, 2
modify it to solve the following parts
1. set bit to disable IRQ7
Sol:
or al, 128
Read the following lines of code. It will read the mask register from port 0x21 and then
set the 2nd bit in the register. As soon as it is written back to port 0x21; Keyboard will be
disabled that is connected to IRQ1.
in al, 0x21 ; read interrupt mask register
or al, 2 ; set bit for IRQ1
out 0x21, al ; write back mask register
Take out line 2 i.e.
or al, 2
modify it to solve the following parts
1. set bit to disable IRQ7
Sol:
or al, 128
Differentiate Synchronous and Asynchronous interrupts. Just give 2 to 3 differences also provide 1 to 2 examples.
Interrupts are asynchronous and unpredictable. Asynchronous means that the interrupts occur, independent of the working of the processor, i.e. independent of the instruction currently executing. Synchronous events are those that occur side by side with another activity. Interrupts must be asynchronous as they are generated by the external world which is unaware of the happenings inside the processor.
Monday, 27 December 2010
How to Read 12 Digit UPC Barcode
Most bar codes in the US are 12-digit UPC (Universal Product Code) barcodes, with ten digits at the bottom of the code and one small number to each side. Impress your friends by asking them to select a random item from the kitchen with a removable label and cut the numbers off of the UPC barcode; you can then proceed to read the numbers encoded in the lines.
Saturday, 18 December 2010
Norton Partition Magic 8.05 Download
Norton Partition Magic 8.05 allows you to copy, move, resize, split, or merge partitions as needed without losing data. Intuitive Windows -based browser lets you find, copy and paste files in both Windows and Linux partitions
Norton Utlilites 2010 v14.5.0
Norton Utilities is an application suite which integrates registry scanning, privacy cleaning and computer management. Using Norton Utilities,
you can safely repair the Windows registry, permanently erase all traces of your online and computer activities, as well as monitor and tune
your system for optimal performance.
Key Technologies:
* Disk Cleaner
* Disk Bleacher
* Startup Manager
* Registry Defragmenter
* Registry Cleaner
* Service Manager
* Disk Cleaner
* Disk Bleacher
* Startup Manager
* Registry Defragmenter
* Registry Cleaner
* Service Manager
* System Optimizer
* Performance TestT*
Key Benefits:
* Finds and fixes PC problems with one click-Automatically detects and fixes Microsoft? Windows? issues so you can spend more time
using your PC and less time troubleshooting.
* Speeds up PC boot time -Accelerates PC boot time and reduces unnecessary waiting by prioritizing startup applications.
* Reclaims PC memory-Optimizes the registry for quicker application launch and a faster running PC.
* Frees up hard disk space-Boosts overall PC performance by defragging your hard drive, freeing up storage space, and recouping system
resources.
* Protects your personal information-Permanently deletes unwanted sensitive files from your PC so hackers can't access your data.
* Helps prevent system errors-Undoes erroneous registry tasks and commands to help keep your PC running error-free.
* Benchmarks your PC's performance-Determines whether your PC is performing at its best by benchmarking it against similar systems.
(OS: Windows 7/XP/Vista)
Download Link:
http://www.mediafire.com/?rnt0bl5y15hu2e3


