News:

Holy shit, it's 2018 2019 2020 2021 2022 2023 2024, and the US isn't a fascist country! What a time to be alive. Well, shit.

Main Menu

Note to self

Started by Joe, December 10, 2006, 10:01:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Joe

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
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Newby

Why don't you drop that in a zip folder on a thumbdrive or something? Or PM it to yourself? :P
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Furious

I knew this was a Joe topic when I saw it on the newest reply.
Quote[23:04:34] <deadly7[x86]> Newby[x86]
[23:04:35] <deadly7[x86]> YOU ARE AN EMO
[23:04:39] <Newby[x86]> shush it woman

Quote[17:53:31] InsaneJoey[e2] was banned by x86 (GO EAT A BAG OF FUCK ASSHOLE (randomban)).

Quote from: ErgotPut it this way Joe... you're on my Buddy List... if there's no one else on an you're the only one, I'd rather talk to myself.

Joe

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: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


Newby

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...
- Newby
http://www.x86labs.org

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote from: Rule on June 30, 2008, 01:13:20 PM
Quote from: CrAz3D on June 30, 2008, 10:38:22 AM
I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Warrior

#5
Moderator Note: I'm too lazy to trash posts anymore..
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling