How to Write a simple Assembly Program
===

I'm too amatuer. I want to compile program below in an assembly IDE, I mean I want to write a simple console application:

    X DB 18
    MOV AL,-18
    ADD AL,X

I want to see AL's value as output on console screen, How can I run this simple code? which codes should I add to it?