Remove ads, unlock a dark mode theme, and get other perks by upgrading your account. Experience the website the way it's meant to be.

A1iens and A1rwaves [Archived] • Page 308

Discussion in 'General Forum' started by Garrett, Mar 7, 2017.

Thread Status:
This thread is locked and not open for further replies.
  1. Ken

    entrusted Prestigious

    Damn, you'll never get those 2 cigs back.
     
    lish and dadbolt like this.
  2. Dirty Sanchez

    Prestigious Prestigious

    you might need those two cigarettes to suffocate the bacteria -> in case you swallow some apple seeds.
     
  3. ReginaPhilange

    Trusted Prestigious

    I think the juxtaposition of smoking coffin nails and talking about the lack of an afterlife left her shook. so in a way she paid for it.
     
  4. Ken

    entrusted Prestigious

    Good advice.
     
    lish and Dirty Sanchez like this.
  5. ReginaPhilange

    Trusted Prestigious

    life hack: swallow apple seeds, apple tree grows in stomach, apples fall from tree, automatic nutrition achieved.
     
    lish, dadbolt, ChaseTx and 2 others like this.
  6. Ken

    entrusted Prestigious

    Except apple seeds carry dangerous bacteria that only can be gotten rid of by vomiting the seeds out or smoking cigarettes to kill the bacteria.
     
  7. Dirty Sanchez

    Prestigious Prestigious

    THIS IS HOW YOU ASK THE USER WHAT SIZE SPHERE THEY WANT CALCULATED IN ASSEMBLY:


    FUCK ASSEMBLY





    .text
    .global _start

    _start:


    askRadius:
    mov $4, %eax
    mov $1, %ebx
    mov $enterRadius, %ecx
    mov $radiusLen, %edx
    int $0x80

    readRadius:
    mov $3, %eax
    mov $0, %ebx
    mov $number, %ecx
    mov $25, %edx
    int $0x80

    decl %eax
    mov %eax, %edi
    xorl %eax, %eax
    movl $number, %ebx


    calculateRadiusloop:



    dec %edi


    movb (%ebx), %cl
    incb %bl
    subb $'0', %cl
    addb %cl, %al
    movb $10, %dl
    imulb ten

    cmp $0, %edi
    jnz calculateRadiusloop

    movl ten, %ecx
    xorl %edx, %edx
    divl %ecx
    movl %eax, radius



    findVolume:



    imull radius
    imull radius
    imull eightyEight /
    xorl %edx, %edx
    divl three
    xorl %edx, %edx
    divl seven
    movl %eax, calculatedVol

    divideVolume:

    inc %edi
    xorl %edx, %edx
    divl ten
    push %edx

    cmp zero, %eax
    jnz divideVolume


    printVolumeMsg:

    /* Print volume message: "The volume of the sphere is: " */
    mov $4, %eax
    mov $1, %ebx
    mov $volumeMessage, %ecx /* Put the address of prompt in ecx */
    mov $volumeMessageLen, %edx
    int $0x80 /* Call to the Linux OS */
    movl calculatedVol, %eax



    convertandPrintAgain:

    pop %edx
    dec %edi

    addl $'0', %edx
    mov %edx, converted

    movl $4, %eax
    movl $1, %ebx
    movl $converted, %ecx
    movl $1, %edx
    int $0x80

    cmp zero, %edi
    jnz convertandPrintAgain


    movl $4, %eax /* The system call for write (sys_write) */
    movl $1, %ebx /* File descriptor 1 - standard output */
    movl $tab, %ecx /* Put the address of prompt in ecx */
    movl $tabLen, %edx
    int $0x80


    exit:
    mov $1, %eax
    mov $1, %ebx
    int $0x80 /* Direct call to Linux */

    printTab:




    .data


    number: .int 0
    radius: .int 0
    calculatedVol: .int 0
    eightyEight: .int 88
    ten: .int 10
    seven: .int 7
    three: .int 3
    zero: .int 0

    /* Below are all the strings that are used in the program */
    converted: .ascii ""

    enterRadius: .ascii "Enter radius of sphere: "
    .equ radiusLen, . - enterRadius

    tab: .ascii "\n"
    .equ tabLen, . - tab

    volumeMessage: .ascii "The volume of sphere: "
    .equ volumeMessageLen, . - volumeMessage
     
  8. ReginaPhilange

    Trusted Prestigious

    she asked the usual question of "where does our conscious energy go when we die" to which I replied "bugs, beetles, and bacteria"
     
    lish, dadbolt, Ken and 1 other person like this.
  9. ReginaPhilange

    Trusted Prestigious

    is this connected to my cloud drive
     
    lish and Dirty Sanchez like this.
  10. iCarly Rae Jepsen

    run away with me Platinum

    This is a family website delete this filth
     
    lish, Ken, dadbolt and 3 others like this.
  11. Dirty Sanchez

    Prestigious Prestigious

  12. dadbolt

    Prestigious Prestigious

    *serj voice* why have you forsaken me
     
  13. Dirty Sanchez

    Prestigious Prestigious

    time to google system of a down and see what they are up to now.
     
  14. ReginaPhilange

    Trusted Prestigious

    don't you mean "down to"
     
  15. nl5011

    Trusted Supporter

    I don't believe in the classic idea of soul or reincarnation. But my understanding of physics doesn't leave me with THAT bleak of an outlook. Trip on some mushies guys.
     
  16. iCarly Rae Jepsen

    run away with me Platinum

    I do wonder why we're on this Earth but in more of a not cool fam way
     
  17. Dirty Sanchez

    Prestigious Prestigious

    When I go, just put me in the trash.
     
    lish, angrycandy, ChaseTx and 3 others like this.
  18. Ken

    entrusted Prestigious

    I've tripped. Still feels like this is all there is.
     
    lish and nl5011 like this.
  19. ReginaPhilange

    Trusted Prestigious

    learning physics has only deepened my appreciation for life and the universe. as a physics major I confirm there are things out there that our bigger than us.
     
    lish and nl5011 like this.
  20. ReginaPhilange

    Trusted Prestigious

    man the math in physics gets so deep it can almost feel like you're reading the DNA if the universe, so to speak. Things start getting very weird. For as much as we know, we know very little. 100 years from now and our understanding of the natural world will be completely changed.
     
    Petit nain des Îles, lish and nl5011 like this.
  21. iCarly Rae Jepsen

    run away with me Platinum

    lish, Dirty Sanchez, ChaseTx and 2 others like this.
  22. oldjersey

    Pro STREAMER ON TWITCH Supporter

    Dirty trash
     
    lish, Dirty Sanchez, nl5011 and 2 others like this.
  23. iCarly Rae Jepsen

    run away with me Platinum

  24. Ken

    entrusted Prestigious

    damn. People are not happy today!
     
    lish and Dirty Sanchez like this.
  25. oldjersey

    Pro STREAMER ON TWITCH Supporter

    Fuck shit fuck fuck dhit fuck
     
    lish and Ken like this.
Thread Status:
This thread is locked and not open for further replies.