Register - Login
Views: 99414191
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-25-22 12:40:02 AM
Jul - Innocent Town - IT'S SEXYFINE TIME!!! New poll - New thread - New reply
Pages: 1 2 3 Next newer thread | Next older thread
Joe
Common spammer
🍬
Level: 111


Posts: 2039/3392
EXP: 14490032
For next: 378328

Since: 08-02-07

From: Pororoca

Since last post: 4 days
Last activity: 5 hours

Posted on 05-05-11 10:01:56 PM Link | Quote
Originally posted by Zero One
Fully commented too.
This is what "fully commented" should look like. (Yes, I realize large sections are missing. That page is horribly out-of-date. Also, it's been three months since I last worked on that. )

____________________
 
Sanqui
2060
💛🤍💜🖤🦉
Level: 87


Posts: 826/2066
EXP: 6305484
For next: 87290

Since: 12-20-09

Pronouns: any ✨
From: Czechia | Estonia

Since last post: 6 days
Last activity: 1 day

Posted on 05-08-11 05:32:49 PM Link | Quote
Look, a lil' floating box!

; de is C3A0 here
RO2A:45AE E5 push hl ; Save the old values in stack
RO2A:45AF D5 push de
RO2A:45B0 0E 08 ld c,08 ; Write 8 in c
RO2A:45B2 3E 00 ld a,00 ; Write 0 in a
RO2A:45B4 12 ld (de),a ; Write a in where de points
RO2A:45B5 13 inc de ;
RO2A:45B6 0D dec c ;
RO2A:45B7 20 FB jr nz,45B4 ; if c != 0: Jump back to 45B4
; This effectively zeroes C3A0-C3A8
RO2A:45B9 D1 pop de ; Load the old value of de from stack
RO2A:45BA 0E 09 ld c,09 ; Write 9 in c
RO2A:45BC 0D dec c ;
RO2A:45BD 28 12 jr z,45D1 ; If c is zero, jump to 45D1.
RO2A:45BF 2A ldi a,(hl) ; load and increment what's in hl into a
RO2A:45C0 FE E0 cp a,E0 ; If a is NOT e0, jump to 45BC. Remember, e0 is
RO2A:45C2 20 F8 jr nz,45BC ; the "end string" character.
RO2A:45C4 CB 39 slr c ; multiply c by 2
RO2A:45C6 79 ld a,c ; Write c in a
RO2A:45C7 B7 or a ;
RO2A:45C8 28 07 jr z,45D1 ; If a is 0, jump to 45D1
; ^ this is the "center text" routine, though I don't
; understand it much.
RO2A:45CA 3E 00 ld a,00 ; load 0 in a
RO2A:45CC 12 ld (de),a ; Write a in where de points.
RO2A:45CD 13 inc de ;
RO2A:45CE 0D dec c ;
RO2A:45CF 20 FB jr nz,45CC ; If c is not zero, jump back to 45CC
; Why do this? This just zeroes it again
RO2A:45D1 E1 pop hl ; Load old hl from stack
RO2A:45D2 0E 08 ld c,08 ; Write 8 in c
RO2A:45D4 2A ldi a,(hl) ; Load what's in (hl) to a, increment
RO2A:45D5 12 ld (de),a ; write what's in a to (de)
RO2A:45D6 0D dec c ;
RO2A:45D7 C8 ret z ; return from subroutine if c is zero
RO2A:45D8 13 inc de ;
RO2A:45D9 FE E0 cp a,E0 ;
RO2A:45DB 20 F7 jr nz,45D4 ;jump to 45D4 if a != e0
RO2A:45DD 3E 00 ld a,00 ;
RO2A:45DF 12 ld (de),a ;
RO2A:45E0 13 inc de ;
RO2A:45E1 0D dec c ;
RO2A:45E2 20 FB jr nz,45DF ; zeroing again
RO2A:45E4 C9 ret ; return from subroutine

Overly commented, I know, but it's the first ASM I read..

It's a routine that centers text in Telefang and writes it in memory. derp derp

____________________



devin

Yoshi
i'm mima irl
Level: 112


Posts: 2042/3519
EXP: 14919884
For next: 418321

Since: 04-29-08

Pronouns: any
From: FL

Since last post: 298 days
Last activity: 2 days

Posted on 05-09-11 02:57:28 PM Link | Quote
Hey have a stupid decompression routine. I took out the comments because I can.


-- lda #$08
sta $44
stz $42
lda $0000, y
sta $43
iny
- asl $43
bcs +
lda $42
bra ++
+ lda $0000, y
sta $42
iny
++ sta $7F2000,x
inx
inx
dec $44
bne -
dec $46
bne --


Figure out what game it's from and win a sexy prize

____________________

Photo by Luc Viatour
Pages: 1 2 3 Next newer thread | Next older thread
Jul - Innocent Town - IT'S SEXYFINE TIME!!! New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

30 database queries.
Query execution time:  0.106760 seconds
Script execution time:  0.010307 seconds
Total render time:  0.117067 seconds


TidyHTML vomit below
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 2 column 311 - Warning: unescaped & or unknown entity "&page"
line 119 column 11 - Warning: <form> isn't allowed in <table> elements
line 118 column 10 - Info: <table> previously mentioned
line 120 column 11 - Warning: missing <tr>
line 120 column 119 - Warning: missing </font> before </td>
line 124 column 16 - Warning: plain text isn't allowed in <tr> elements
line 120 column 11 - Info: <tr> previously mentioned
line 125 column 68 - Warning: missing </nobr> before </td>
line 141 column 68 - Warning: missing </nobr> before <tr>
line 147 column 35 - Warning: missing <tr>
line 147 column 50 - Warning: missing </font> before </td>
line 148 column 37 - Warning: unescaped & or unknown entity "&id"
line 147 column 183 - Warning: missing </font> before </table>
line 149 column 35 - Warning: missing <tr>
line 149 column 95 - Warning: unescaped & or unknown entity "&page"
line 149 column 128 - Warning: unescaped & or unknown entity "&page"
line 149 column 50 - Warning: missing </font> before </td>
line 149 column 165 - Warning: missing </font> before </table>
line 156 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 158 column 9 - Warning: missing <tr>
line 176 column 13 - Warning: missing <tr>
line 177 column 102 - Warning: unescaped & or unknown entity "&postid"
line 179 column 74 - Warning: <style> isn't allowed in <td> elements
line 179 column 9 - Info: <td> previously mentioned
line 182 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 184 column 9 - Warning: missing <tr>
line 202 column 13 - Warning: missing <tr>
line 203 column 102 - Warning: unescaped & or unknown entity "&postid"
line 205 column 74 - Warning: <style> isn't allowed in <td> elements
line 205 column 9 - Info: <td> previously mentioned
line 254 column 5772 - Warning: discarding unexpected </div>
line 254 column 5877 - Warning: unescaped & or unknown entity "&exp"
line 254 column 5888 - Warning: unescaped & or unknown entity "&expn"
line 254 column 5899 - Warning: unescaped & or unknown entity "&expp"
line 254 column 5909 - Warning: unescaped & or unknown entity "&exppost"
line 254 column 5921 - Warning: unescaped & or unknown entity "&expidle"
line 254 column 5937 - Warning: unescaped & or unknown entity "&post"
line 254 column 5946 - Warning: unescaped & or unknown entity "&version"
line 254 column 5956 - Warning: unescaped & or unknown entity "&date"
line 254 column 5778 - Warning: <div> isn't allowed in <tr> elements
line 204 column 19 - Info: <tr> previously mentioned
line 254 column 6017 - Warning: discarding unexpected </td>
line 257 column 9 - Warning: <div> isn't allowed in <table> elements
line 152 column 17 - Info: <table> previously mentioned
line 259 column 9 - Warning: missing <tr>
line 277 column 13 - Warning: missing <tr>
line 278 column 102 - Warning: unescaped & or unknown entity "&postid"
line 280 column 527 - Warning: missing </span> before <pre>
line 302 column 1 - Warning: inserting implicit <span>
line 307 column 17 - Warning: missing <tr>
line 307 column 17 - Warning: discarding unexpected <table>
line 310 column 35 - Warning: missing <tr>
line 310 column 95 - Warning: unescaped & or unknown entity "&page"
line 310 column 128 - Warning: unescaped & or unknown entity "&page"
line 310 column 50 - Warning: missing </font> before </td>
line 310 column 165 - Warning: missing </font> before </table>
line 312 column 35 - Warning: missing <tr>
line 312 column 50 - Warning: missing </font> before </td>
line 313 column 37 - Warning: unescaped & or unknown entity "&id"
line 312 column 183 - Warning: missing </font> before </table>
line 314 column 17 - Warning: discarding unexpected </textarea>
line 314 column 28 - Warning: discarding unexpected </form>
line 314 column 35 - Warning: discarding unexpected </embed>
line 314 column 43 - Warning: discarding unexpected </noembed>
line 314 column 53 - Warning: discarding unexpected </noscript>
line 314 column 64 - Warning: discarding unexpected </noembed>
line 314 column 74 - Warning: discarding unexpected </embed>
line 314 column 82 - Warning: discarding unexpected </table>
line 314 column 90 - Warning: discarding unexpected </table>
line 316 column 9 - Warning: missing </font> before <table>
line 328 column 25 - Warning: discarding unexpected </font>
line 337 column 37 - Warning: discarding unexpected </font>
line 315 column 1 - Warning: missing </center>
line 120 column 63 - Warning: <img> lacks "alt" attribute
line 125 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 125 column 93 - Warning: <img> lacks "alt" attribute
line 141 column 19 - Warning: <td> attribute "width" has invalid value "120px"
line 141 column 98 - Warning: <img> lacks "alt" attribute
line 148 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 148 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 161 column 23 - Warning: <img> lacks "alt" attribute
line 161 column 64 - Warning: <img> lacks "alt" attribute
line 161 column 113 - Warning: <img> lacks "alt" attribute
line 161 column 163 - Warning: <img> lacks "alt" attribute
line 162 column 11 - Warning: <img> lacks "alt" attribute
line 172 column 15 - Warning: <img> lacks "alt" attribute
line 179 column 1137 - Warning: <img> proprietary attribute value "absmiddle"
line 179 column 1137 - Warning: <img> lacks "alt" attribute
line 186 column 16 - Warning: <img> proprietary attribute value "absmiddle"
line 186 column 16 - Warning: <img> lacks "alt" attribute
line 186 column 59 - Warning: <img> proprietary attribute value "absmiddle"
line 186 column 59 - Warning: <img> lacks "alt" attribute
line 186 column 102 - Warning: <img> proprietary attribute value "absmiddle"
line 186 column 102 - Warning: <img> lacks "alt" attribute
line 186 column 145 - Warning: <img> proprietary attribute value "absmiddle"
line 186 column 145 - Warning: <img> lacks "alt" attribute
line 187 column 22 - Warning: <img> lacks "alt" attribute
line 187 column 63 - Warning: <img> lacks "alt" attribute
line 187 column 112 - Warning: <img> lacks "alt" attribute
line 187 column 162 - Warning: <img> lacks "alt" attribute
line 188 column 11 - Warning: <img> lacks "alt" attribute
line 198 column 15 - Warning: <img> lacks "alt" attribute
line 206 column 2404 - Warning: <img> proprietary attribute value "absmiddle"
line 206 column 2404 - Warning: <img> lacks "alt" attribute
line 261 column 11 - Warning: <img> lacks "alt" attribute
line 262 column 23 - Warning: <img> lacks "alt" attribute
line 262 column 64 - Warning: <img> lacks "alt" attribute
line 262 column 113 - Warning: <img> lacks "alt" attribute
line 262 column 163 - Warning: <img> lacks "alt" attribute
line 263 column 11 - Warning: <img> lacks "alt" attribute
line 273 column 15 - Warning: <img> lacks "alt" attribute
line 303 column 1199 - Warning: <img> lacks "alt" attribute
line 313 column 44 - Warning: <img> proprietary attribute value "absmiddle"
line 313 column 142 - Warning: <img> proprietary attribute value "absmiddle"
line 313 column 246 - Warning: <img> proprietary attribute value "absmiddle"
line 322 column 25 - Warning: <img> lacks "alt" attribute
line 327 column 267 - Warning: <img> lacks "alt" attribute
line 307 column 17 - Warning: trimming empty <tr>
line 125 column 68 - Warning: <nobr> is not approved by W3C
line 141 column 68 - Warning: <nobr> is not approved by W3C
line 177 column 27 - Warning: <nobr> is not approved by W3C
line 203 column 27 - Warning: <nobr> is not approved by W3C
line 278 column 27 - Warning: <nobr> is not approved by W3C
Info: Document content looks like HTML5
Info: No system identifier in emitted doctype
Tidy found 119 warnings and 0 errors!


The alt attribute should be used to give a short description
of an image; longer descriptions should be given with the
longdesc attribute which takes a URL linked to the description.
These measures are needed for people using non-graphical browsers.

For further advice on how to make your pages accessible
see http://www.w3.org/WAI/GL.
You are recommended to use CSS to specify the font and
properties such as its size and color. This will reduce
the size of HTML files and make them easier to maintain
compared with using <FONT> elements.

You are recommended to use CSS to control line wrapping.
Use "white-space: nowrap" to inhibit wrapping in place
of inserting <NOBR>...</NOBR> into the markup.

About HTML Tidy: https://github.com/htacg/tidy-html5
Bug reports and comments: https://github.com/htacg/tidy-html5/issues
Official mailing list: https://lists.w3.org/Archives/Public/public-htacg/
Latest HTML specification: http://dev.w3.org/html5/spec-author-view/
Validate your HTML documents: http://validator.w3.org/nu/
Lobby your company to join the W3C: http://www.w3.org/Consortium

Do you speak a language other than English, or a different variant of
English? Consider helping us to localize HTML Tidy. For details please see
https://github.com/htacg/tidy-html5/blob/master/README/LOCALIZE.md