Forum: Assembly Feb 6th, 2008 |
| Replies: 3 Views: 3,209 yea one more register like for instance dx where it will be now
add eax, ebx
add edx,eax ; now write a code that writes using ax, then dx b4 returning
add ebx, eax |
Forum: Assembly Feb 6th, 2008 |
| Replies: 3 Views: 3,209 the code you wrote is not for such a sequence, try and calculate manually and you'll see, u must write another code. try adding one more register. whats with the numbers anyway? |
Forum: Assembly Jan 8th, 2008 |
| Replies: 1 Views: 817 |
Forum: Assembly Jan 8th, 2008 |
| Replies: 3 Views: 1,989 Oh, No The
Or Al,1h ;not 0h Sorry |
Forum: Assembly Jan 8th, 2008 |
| Replies: 1 Views: 817 heya why is it that wen i switch back to real mode i cant access real mode interrupts even when i never modified anythang like for instance this code
mov EAX,CR0
OR AL,0H
MOV CR0,EAX;THEN SWITCH... |
Forum: Assembly Jan 8th, 2008 |
| Replies: 3 Views: 1,989 heya why is it that wen i switch back to real mode i cant access real mode interrupts even when i never modified anythang like for instance this code
mov EAX,CR0
OR AL,0H
MOV CR0,EAX;THEN SWITCH... |
Forum: Assembly Dec 5th, 2007 |
| Replies: 6 Views: 2,232 i got it all, will post it later, now the only thig is interrrupts |
Forum: Assembly Dec 4th, 2007 |
| Replies: 6 Views: 2,232 i know cs is for the selector but it doesnt select the right selector at all, what memory should i put at GDTR 00007c00h+gdtr or what? |
Forum: Assembly Dec 2nd, 2007 |
| Replies: 6 Views: 2,232 Now i have been able to create the gdt's and when i change to pmode, will a short JMP flush the instruciton prefetch queue? here is a sample of my code and the gdt and gdtr content,
mov ax,07c00h... |
Forum: Assembly Nov 11th, 2007 |
| Replies: 3 Views: 1,989 Anyone to help with protected mode programming,like help me create a a data descriptor pointing to 0b800h when i try to write to RAM it rebbots |
Forum: Assembly Nov 1st, 2007 |
| Replies: 1 Views: 894 Why does my computer reboot after i set PE bit of cr0 or run lmsw? I have set all the code and data segments |
Forum: Assembly Nov 1st, 2007 |
| Replies: 9 Views: 2,481 Hey people i got it, its lgdt [ds: (ofset) ] thank u guys and God bless u. Praise be to God |
Forum: Assembly Oct 31st, 2007 |
| Replies: 9 Views: 2,481 That is the exact notes i have, i jus have a problem with if an operand or a memory ofset folows or es:di or ds:si. Thats all, nothng else i have 3 intel refrence books but none explains. How do i... |
Forum: Assembly Oct 30th, 2007 |
| Replies: 4 Views: 1,572 Now what about the service giving me a direct pointer to the bank switch code so that i can call it using a far pointer? My book doesnt have that |
Forum: Assembly Oct 30th, 2007 |
| Replies: 9 Views: 2,481 I am not looking for sgdt, i just want lgdt and the intel manual i am using is unclear. The code was executed in real mode using 3bytes while my operand overide was 66 or should i include 67h too for... |
Forum: Assembly Oct 30th, 2007 |
| Replies: 9 Views: 2,481 I am trying to load lgdtr. I am initializing protected mode. So it is writen that the opcode's operand will be a word for the ptr limit and double word for ptr of base. Lets say my 48bits are at... |
Forum: Assembly Oct 29th, 2007 |
| Replies: 9 Views: 2,481 The LGDT is stil causing me problems, what hapens to m16&m32 how many bytes wil folow and how wil the bytes represent the memory ofset? |
Forum: Assembly Oct 29th, 2007 |
| Replies: 4 Views: 1,572 Im coding on vesa mode 116h, i knw its properties like banks windows and resolution, my only problem is that i dont knw how to switch banks and dont know what the windows refer to. I also want help... |
Forum: Assembly Oct 26th, 2007 |
| Replies: 9 Views: 2,481 I Need help on how to write the full opcode of the above x86 codes.
i saw like for sgdt it is 0F 01 /1. the problem is i dont know the full opcode will it be 0F01[01-this is what am not sure][then... |