Author Topic: Note to self  (Read 4024 times)

0 Members and 4 Guests are viewing this topic.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Note to self
« on: December 10, 2006, 10:01:27 pm »
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:

Code: [Select]
[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
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Note to self
« Reply #1 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
- 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

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. 

Offline Furious

  • Hero Member
  • *****
  • Posts: 1833
  • I hate rabbits
    • View Profile
Re: Note to self
« Reply #2 on: December 10, 2006, 10:23:21 pm »
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: Ergot
Put 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.

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Note to self
« Reply #3 on: December 10, 2006, 10:34:14 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. :)

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.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Note to self
« Reply #4 on: December 11, 2006, 10:35:34 am »
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

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. 

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: Note to self
« Reply #5 on: December 12, 2006, 06:42:52 pm »
Moderator Note: I'm too lazy to trash posts anymore..
« Last Edit: December 12, 2006, 07:00:19 pm by Joe[x86] »
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