| | #1 |
| Warrior Member Join Date: 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
i need some help with an assembler code that runs in the corewars8086 engine so basically there are 2 interrupts that can be used once per round so i wanted to know if i can use someone can help me build a code that does the same thing as the interrupt so i can use it more then once by the way its ASM8086 so these are interrupts 0x86 and 0x87 (hexadecimal) 0x86 takes 256 bits from the di to the es and puts inside them illegal values like 0cccch normaly to use the interrupt the code will go like this : Code: push cs
pop es ; set es as the code segment (main memory map)
xor di,di ; di is our offset, xoring it with himself
; will set him to zero
mov ax, 0cccch ; set invalid opcodes in ax.
mov dx, ax ; ... and copy it to dx
int 86h ; execute interrupt 0x86. about 0x87 it searches for a combination of 4 bytes (for example 01234h) on a 64kb segment and replaces the value of them with an illegal value like 0cch or with a jump commands (jmp) for example to run the 0x87: Code: push cs
pop es ; set es as the code segment(main memory map)
xor di,di ; di is our offset, xoring it with himself
; will set him to zero
mov ax, 04187h ; ax:dx is the byte string to find.
mov dx, 08820h
mov cx, 0cccch ; cx:bx is the byte string to replace with.
mov bx,cx
int 87h ; execute interrupt 0x87. thanks in advance! |
| |
| | #2 |
| Warrior Member Join Date: 2013
Posts: 20
Thanks: 5
Thanked 8 Times in 6 Posts
|
Assembly code? Somehow used for internet marketing?
|
| |
| | #3 |
| IM Rocks! War Room Member Join Date: 2010 Location: USA
Posts: 501
Thanks: 52
Thanked 65 Times in 60 Posts
| |
| | |
| |
| | #4 |
| Warrior Member Join Date: 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
if you wish i could upload the engine so you could play with it
|
| |
|
| Bookmarks |
| Tags |
| assembler|corewars8086, engine |
| |