Random line of code thread
category: code [glöplog]
Code:
lda #$80
ldx chrval
sta ,x
leax 1,x
stx chrval
ldx chrval2
sta ,x
leax -1,x
stx chrval2
String string = "Stringers in the Night!"; // Bert Kaempfert
for (;;){fork();}
Code:
MOVE.L DY,d5
MOVE.L DX,d6
SUB.L d6,d5
LSL.L #2,d5
MOVE.L d5,$dff050
Most important lines of code in history of The-Mankind-68k.

Doesn't it work? It does!!!! It god damn does!!!!
And it was made by random. I knew there's some shift for pixels along the line, so I started to play with registers and when changed 4dy-2dx to 4dy-4dx, all was gut, all was klaaar!!!!
The most important RANDOM line of code ever!!!!
// simpler version of the sh*t above (FIXME: this bugs, but I like how it looks)
move.w #284-1,d7 ; damn that's a lot of sprites
{(3 << 6) | 63 , {{effect_title_deinit,0}, {voxelEffectStart,0}, {voxelFadeIn,0}, 0, 0}},
Code:
id my_amp
name "my amp"
author bsp
cat amp
param p_level 1
mod m_level
<out:
* $m_level
a ..simple plugin.
Code:
mov bl,70
OPEN 15,8,15,"UI-":CLOSE 15
// The Commodore 1541 floppy drive uses a slower Commodore 64 compatible mode which can be deactivated for faster speed by using the command. (unfortunately I didn't know this at the time.)
// The Commodore 1541 floppy drive uses a slower Commodore 64 compatible mode which can be deactivated for faster speed by using the command. (unfortunately I didn't know this at the time.)
Code:
DATA(class_info) = NEW cl_oo_class( clsname = CONV #( cl_abap_typedescr=>describe_by_object_ref( source_instance )->get_relative_name( ) ) ).
Code:
-- sick tunes btw
currentValue = ffi.string(mod:format_pattern_row_channel_command(pattern, row, channel, command))
Code:
throw new Exception("Oh shit, you should never get here!")