Previous Page | Next Page
- by unknownfile at 7:06 AM EST on February 6, 2006
- Pwnage! ;D
- by hcs at 12:33 AM EST on February 8, 2006
- new Parachute high score: 299
now 346
ow, my thumb cramped up
edited 6:23 AM EST February 8, 2006
The weird thing is it wasn't the thumb I was using to play the game...
edited 4:18 PM EST February 8, 2006
- by unknownfile at 6:34 AM EST on February 8, 2006
- I got an iPod as well for my birthday. It is uber rux. I just cant get it to play xsfs and dsps... @_@;;
- by hcs at 4:16 PM EST on February 8, 2006
edited 9:57 PM EST February 8, 2006
- by hcs at 8:21 PM EST on February 8, 2006
- 351 (Parachute)
- by PokeParadox at 11:13 PM EST on February 8, 2006
- I've just come into uni only to come to the realisation that we don't have any lectures or anything today... >_>
*Grumbles* stupid new timetable.
- by unknownfile at 6:46 AM EST on February 9, 2006
- Well, I've been putting my x86 knowledge to use, mainly to calculate several problems in math this morning. The calculation was P = (d / 10) + 1.
*START ASM PLZ*
/*
Basic formula to get result for P
Formula: P = d / 10 + 1
Variables and their CPU Register equivilants:
d = eax
p = ebx
*/
mov eax, 0Ah ;set d to 10.
idiv eax, 0Ah ;divides d by 10
inc eax ;Adds 1 to d
mov ebx, eax ;moves our result, and we're done!
*END ASM PLZ*
That, and I've been caught again on JJ2 about giving servers illegal exceptions. Yaaaaaaay. Unreal is much better anyways.
- by Josh W at 7:00 AM EST on February 9, 2006
- I can use X86 assembly too.
I made a program in QBasic some time ago that wrote a string to a little LCD screen that i have (2*16 chars) in dos. The model is an Ampire 162B HD44780 compatible
So then i decided to write it in C and use the command line. For some strange reason i got the idea that the 3.81kb program was too big. So i made a little assembly program out of it. I was quite upset that i couldnt get it smaller than 108 bytes
Well here is teh code for it.
SECTION .text
org 100h
start:
PUSH ES
POP DS
MOV BX, SendCommandAND
MOV DI, SendCommandOR
MOV BP, DELAY1
MOV DX, 378H
MOV SI, InitData
MOV AH, 0DFH
CALL BX
MOV AH, 8H
CALL DI
MOV CX, 3H
InitLoop:
lodsb
OUT DX, AL
MOV AH, 1H
call DI
CALL BP
MOV AH, 0FEH
CALL BX
CALL BP
LOOP InitLoop
MOV AH, 0F7H
CALL BX
MOV SI, 80H
LODSB
MOV CL, AL
INC SI
CountLoop:
LODSB
OUT DX, AL
MOV AH, 1H
CALL DI
CALL BP
MOV AH, 0FEH
CALL BX
CALL BP
LOOP CountLoop
Finished:
MOV AH, 4CH
INT 21H
DELAY1:
PUSHA
MOV dx, 40H
IN al, dx
MOV AH, AL
WaitLoop3:
IN AL, DX
CMP AL, AH
JNE WaitLoop3
POPA
RET
SendCommandOR:
INC DX
INC DX
IN AL, DX
OR AL, AH
SendCommand:
OUT DX, AL
DEC DX
DEC DX
RET
SendCommandAND:
INC DX
INC DX
IN AL, DX
AND AL, AH
jmp short SendCommand
InitData:
DB 0FH, 01H, 38H
- by hcs at 7:28 AM EST on February 9, 2006
- I know how you feel, I'm sure 888 bytes is too big for my Mandelbrot plotter.
- by hcs at 1:51 PM EST on February 11, 2006
- 388 in parachute
395.
edited 7:12 PM EST February 11, 2006
401
edited 2:51 AM EST February 12, 2006
Previous Page | Next Page
Go to Page 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
Search this thread
Show all threads
Reply to this thread:
HCS Forum Index
Halley's Comet Software
forum source