If you're reading this and you're not me, you're not self. But anyhow, I'm going to try installing Ubuntu on my laptop, so I'm "backing up" all the useful code I have written right now.. which is nothing but this:
[ORG 0x100]
; strings
cdkey db '0000000000003','$'
valid db 'Valid!',0x0d,0x0a,'$'
invalid db 'Invalid!',0x0d,0x0a,'$'
MOV ECX, cdkey
CALL IS_VALID
CMP EAX, 0
JNZ Valid
JE Invalid
Valid:
MOV DX, valid
JMP Print
Invalid:
MOV DX, invalid
JMP Print
Print:
MOV AH, 9
INT 0x21
Exit:
MOV AH, 0x4C
INT 0x21
IS_VALID:
MOV EAX, 3
MOV ESI, ECX
MOV EBP, EDX
XOR ECX, ECX
Top:
MOVSX EAX, BYTE [ECX+ESI]
SUB EAX, 0x30
LEA EDI, [EAX+EAX]
XOR EDX, EDI
ADD EAX, EDX
INC ECX
CMP ECX, 0x0c
JL Top
XOR EDX, EDX
MOV EDX, 0x0a
DIV ECX
MOVSX EDX, BYTE [ESI+0x0c]
MOVSX EDX, DL
ADD EDX, 0x30
CMP EAX, EDX
JNZ Fail
MOV EAX, 1
Fail:
MOV EAX, 0
RET
Why don't you drop that in a zip folder on a thumbdrive or something? Or PM it to yourself? :P
I knew this was a Joe topic when I saw it on the newest reply.
Quote from: Newby on December 10, 2006, 10:05:20 PM
Why don't you drop that in a zip folder on a thumbdrive or something? Or PM it to yourself? :P
Thumbdrive is NTFS. Laptop is Win98. And I wanted someone who was bored enough to realize the code was broken and wanted to fix it. :)
Quote from: Furious on December 10, 2006, 10:23:21 PM
I knew this was a Joe topic when I saw it on the newest reply.
You do not know how many "note to self" topics there are in the members' forum.
Quote from: Joex86] link=topic=8127.msg102180#msg102180 date=1165808054]
Quote from: Newby on December 10, 2006, 10:05:20 PM
Why don't you drop that in a zip folder on a thumbdrive or something? Or PM it to yourself? :P
Thumbdrive is NTFS. Laptop is Win98. And I wanted someone who was bored enough to realize the code was broken and wanted to fix it. :)
Why is your thumbdrive NTFS? It's supposed to be FAT32 so you can just pull it out without worry of having to eject it...
Moderator Note: I'm too lazy to trash posts anymore..