Jump to content

Recommended Posts

Posted

Sounds fun. ^^ Can't wait to see it.

I went to this yearly thing they do at the elementary school I went too where they hve all these pumpkins that they do at the school lined upoutside, some of them were really awesome.

 

Me is taking a break cause there's not that muc left to do. -looks around-

Oh! I did find my giant rubber snake. It was in the garage beind the Halloween bins so yay. :D

 

Oh and we're going to Party City later. Gonna get one of those bowls that has a hand inside that grabs your hand if you try to reach in the bowl to get candy. Yay for scaring little kids that want candy! :D

Posted

I love the candy, but my favourite part is decorating and scaring the heck out of anyone that dares to come to get candy from us in as many ways as I possbly can. :D

Posted

I just like the look of Halloween candy.

It's different to normal candy, exactly why I love Pumpkin Pocky.

Posted

A bunch of guys in my neighborhood get candy so that they can throw it at people. Fun. <_< They dont throw it at me, but it is still horrible.

Posted

Exactly! Just like I was watching some Youmacon panel from last year. The guests were getting candy thrown at them. It was apparently painful... :(

Posted

Aww, but that's just part of the fun. It's like at parades when you get candy thrown at you. Sure it may hit you in the face if your not watching but then you get the yummy goodness and a laugh about getting hit, I still say it's amusing.

Posted

Parade candy? At the parades, they throw that really hard candy that you lick on the plane to stop your ears from popping. It tastes horrible as well.

Posted

My favorite part is just the fact that I can dress as something, so I have an excuse for walking around in public as Indiana Jones or The Grim Reaper.

 

Candy and scaring the crap out of people are bonuses.

Posted

I've had the crap scared out of me quite enough this week, thank you very much. Having to handle assembly programming is Halloween enough for me. xD

 

I use a Dell E6400. The Function keys only work if I press them along with the "fn" key. :yes:

Heh, I was looking up your laptop model and I was very amused to see Dell lambasting HP on their battery testing methods. I use a HP Mini 110 netbook myself, which gets barely four hours of battery life on a good day - but it came for free, so I'm not complaining... much. :P

Posted

My costume is really hard to figure out, though really quite funny once I tell them.

And I've never carved a pumpkin in my life..... my mom has these really odd things, which are shaped like funny mouths and ears and whatnot, and we just poke them into the pumpkin. Of course, they are good for little kids.

Posted

So then JB... any chance we could take a few guesses at this costume of yours?

Posted

Sure. I'll give you a brief description.

First of all, I'm wearing a yellow T-shirt. Then I put a white T-shirt on, with a whole in it, so you can see a circle of yellow. Then, to add to that, I've got devil ears too.

 

So, can you get it? It's really hard.

Posted

I was completely stumped at first, but I got it with the help of my good friend Google. Of course, that disqualifies me, so I'll keep my mouth shut and let everyone else guess. :P

Posted

Thanks. (I know. Isn't it hard)

 

And I got it off of Google too.

 

Isn't technology great?

 

On a side note, they was a lot of other great costumes on the site I found it on. Things like 'Game show contestant', and, one of my favorites, 'Invisible Man.'

Posted

Heh, that sounds really interesting. :yes: One thing that would really make me edge away in horror is if I met someone wearing a shirt covered in assembly code. xD

Posted

The Invisible Man was for parties, and you didn't want to go to them, so you'd just stay home, and when somebody asked why you weren't there, you say

"I was. I dressed up as the invisible man."

 

And for the game show contestant, you get a big name tag and randomly say things like "I'd like to buy a vowel" or "Mountains for 500 please, Alex"

Posted

Right. For the perfect costume to scare off programmers, this is what you need on your shirt:

 

;*************************************************
; Rotating Lights example in ASM language
;*************************************************
; export symbols
           XDEF Entry       ; export 'Entry' symbol
           ABSENTRY Entry   ; mark this as application entry point

; include derivative specific macros
           INCLUDE 'derivative.inc'

ROMStart    EQU  $4000  ; absolute address to place my code/constant data

;*****************************************************************
; constants (bitmasks etc)
;*****************************************************************
RUN_SW  equ %00010000  ; PTM.4
DIR_SW  equ %00100000  ; PTM.5

;*****************************************************************
; variable/data section
;*****************************************************************
           ORG RAMStart
; no variable or data

;*****************************************************************
; code section
;*****************************************************************
           ORG   ROMStart

;*****************************************************************
; Main entry point of the program (reset vector points here            
;*****************************************************************
Entry:      LDS   #RAMEnd+1       ; Initialize the stack pointer
           CLI                   ; Enable interrupts

           movb  #$FF,DDRT       ; Configure LEDs as outputs
           ldaa  #%00000011      ; Load initial pattern to rotate

mainLoop:   brclr PTM,#RUN_SW,*      ; Wait for run switch

           brset PTM,#DIR_SW,toLeft ; Check direction

toRight:    clc                   ; Rotate pattern to right
           rora
           bcc   noCarry
           oraa  #%10000000
           bra   noCarry

toLeft:     clc                   ; Rotate pattern to left
           rola
           bcc   noCarry
           oraa  #1

noCarry     staa  PTT             ; Put the pattern on the LEDs
           bsr   delay           ; Wait a while
           bra   mainLoop        ; Back for more

;*****************************************************************
; Delay Routine – uncalibrated
; ENTRY    : Nil
; EXIT     : Nil
; MODIFIED : Nil
;*****************************************************************
delay       pshx
           ldx   #50000   ; Do many times!
delay2      nop            ; Waste some time
           nop
           nop
           nop            
           dbne  x,delay2 ; Count loops

           pulx
           rts


;**************************************************************
;*                 Interrupt Vectors                          *
;**************************************************************
           ORG   $FFFE
           DC.W  Entry           ; Reset Vector

 

That was a super simple, super neat assembly program.

Posted

Okay, I will briefly explain the bane of my existence. :)

 

What you see is a programming language known as assembly. Unlike high-level languages, which generally have comprehensive syntaxes covering the various basic operations and structures needed to build complex programs, assembly code is basically a direct translation of raw processor instructions. There are a few small additions for convenience, but essentially that's all it is - each line represents an instruction in machine code, which can be programmed into a microcontroller directly using binary or hexadecimal input (fortunately we have software that does this for us automatically).

 

Assembly language is generally used to program microcontrollers: miniature computers used to control robots and similar devices. One of the microcontrollers I've been working with looks like this (it's the small circuit board in the centre, with the cables sticking upwards from it):

 

2010-09-13-101651.jpg

 

Since assembly code uses memory addresses, accumulators, and registers directly, programming in assembly requires comprehensive knowledge of the microcontroller you're working with - these things (as well as the instructions themselves) vary wildly. Every microcontroller comes with its own set of features, configurations and odd quirks.

 

The program I posted above basically tells a microcontroller to flash some lights connected to it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...