Message from @redd

Discord ID: 430518495244058635


2018-04-02 23:27:04 UTC  

weird af

2018-04-02 23:28:39 UTC  

@DanielKO I am using raspbian, I’ll try installing ddd when I get back to my dorm.

2018-04-02 23:48:34 UTC  

I'll admit javascript being loosely-typed is the dumbest thing on the planet, but it is still really helpful

2018-04-03 00:01:54 UTC  

I don't understand anyone who doesn't use semicolons

2018-04-03 00:02:00 UTC  

absolute madmen

2018-04-03 00:04:36 UTC  

MAD LAD

2018-04-03 00:04:52 UTC  

It's not the looseness, it's the unpredictable type rules.

2018-04-03 00:05:15 UTC  

I fucking got it mother fuckers

2018-04-03 00:05:48 UTC  

```
.data
print: .asciz "%d\n"
scan: .asciz "%d"
array: .skip 20
a: .word

.text

.global main
main:

push {fp, lr}

mov r6, #0 /* r6 <- 0 (sum) */
mov r7, #0 /* r7 <- 0 (loop counter) */
ldr r4, =array /* r4 <- &array */

in_loop:
cmp r7, #4 /* compare r7 and 4 */
bgt in_loop_end /* branch to in_loop_end if r3 >= 4 */
ldr r0, =scan /* r0 <- &scan */
ldr r1, =a /* r1 <- &a */
bl scanf /* calls scanf */
ldr r1, =a /* r1 <- &a */
ldr r9, [r1] /* r9 <- value at address r1 */
str r9, [r4] /* store value of r9 into address of r4 */
add r4, r4, #4 /* r4 <- r4 + 4 */
add r7, r7, #1 /* r7 <- r7 + 1 */
b in_loop /* branch to in_loop */

in_loop_end:
mov r7, #0 /* r7 <- 0 (loop counter) */
ldr r4, =array /* r4 <- &array */

sum_loop:
cmp r7, #4 /* compare r7 and 4 */
bgt sum_loop_end /* branch to sum_loop_end if r3 >= 4 */
ldr r5, [r4] /* r5 <- value at address r4 */
add r6, r6, r5 /* add onto sum in r6 with r5 as array[i] */
add r4, r4, #4 /* r4 <- r4 + 4 */
add r7, r7, #1 /* r7 <- r7 + 1 */
b sum_loop /* branch to sum_loop */

sum_loop_end:
mov r1, r6 /* r1 <- r6 */
ldr r0, =print /* r1 <- print */
bl printf /* calls printf */

pop {fp, pc}

```

2018-04-03 00:05:49 UTC  

@meratrix your IQ has increased

2018-04-03 00:05:59 UTC  

AAAAH

2018-04-03 00:06:01 UTC  

assembly

2018-04-03 00:06:07 UTC  

what is the code for>

2018-04-03 00:06:09 UTC  

to be fair you have to have a very high IQ to understand ARM Assembly

2018-04-03 00:06:19 UTC  

read in 5 numbers from scanf and sum them

2018-04-03 00:06:33 UTC  

and... why?

2018-04-03 00:06:34 UTC  

😄

2018-04-03 00:06:39 UTC  

class

2018-04-03 00:06:47 UTC  

I have been trying to deal with assembly for a while

2018-04-03 00:07:00 UTC  

reverse engineering AAA games is no easy task

2018-04-03 00:07:04 UTC  

lmao

2018-04-03 00:07:06 UTC  

rip gg

2018-04-03 00:07:16 UTC  

especially when those fuckers pack and encrypt their binaries

2018-04-03 00:08:05 UTC  

I think they packed their code into a data segment, then read it into protected execute only memory space when the exe is launched

2018-04-03 00:08:41 UTC  

windows sucks, trying to see if I can have any luck by manually parsing portable executables with a custom VM written in c++

2018-04-03 00:08:45 UTC  

I got it running, installing ddd now, see if I can get X11 redirect working for it.

https://cdn.discordapp.com/attachments/423219052849397773/430518989228212225/rpi-on-qemu.png

2018-04-03 00:09:04 UTC  

do you use vim key bindings?

2018-04-03 00:09:12 UTC  

vim or gtfo

2018-04-03 00:09:20 UTC  

👌🏻

2018-04-03 00:09:46 UTC  

also what distro you using on your desktop?

2018-04-03 00:10:49 UTC  

I use Mageia.

2018-04-03 00:11:18 UTC  

🙀

2018-04-03 00:11:20 UTC  

Gnome Shell, Terminator for the terminal.

2018-04-03 00:11:23 UTC  

@meratrix good job dude 👍

2018-04-03 00:11:34 UTC  

lol I am still kinda new to linux

2018-04-03 00:11:52 UTC  

got a custom arch linux install with minimal packages installed

2018-04-03 00:14:13 UTC  

I consider Mageia to be the best newbie-friendly distro.

2018-04-03 00:14:30 UTC  

yeah well I just dived into the deep end

2018-04-03 00:14:42 UTC  

gentoo is the most user friendly to install tbh