diff --git a/Assembly language/helloworld-dishant.asm b/Assembly language/helloworld-dishant.asm new file mode 100644 index 0000000..3ba58d6 --- /dev/null +++ b/Assembly language/helloworld-dishant.asm @@ -0,0 +1,16 @@ +hello-DOS.asm - single-segment, 16-bit "hello world" program +; +; assemble with "nasm -f bin -o hi.com hello-DOS.asm" + + org 0x100 ; .com files always start 256 bytes into the segment + + ; int 21h is going to want... + + mov dx, msg ; the address of or message in dx + mov ah, 9 ; ah=9 - "print string" sub-function + int 0x21 ; call dos services + + mov ah, 0x4c ; "terminate program" sub-function + int 0x21 ; call dos services + + msg db 'Hello, World!', 0x0d, 0x0a, '$' ; $-terminated message diff --git a/Assembly language/readme.md b/Assembly language/readme.md new file mode 100644 index 0000000..4bdc48f --- /dev/null +++ b/Assembly language/readme.md @@ -0,0 +1 @@ +HELLO WORLD PROGRAM IN X86 ASSEMBLY LANGUGAE diff --git a/B/helloworld-dishant.b b/B/helloworld-dishant.b new file mode 100644 index 0000000..c1624e1 --- /dev/null +++ b/B/helloworld-dishant.b @@ -0,0 +1,27 @@ +#hacktoberfest + +#B is a programming language developed at Bell Labs around 1969 and is a simplified successor to BCPL. +#It was in 1972 that Kernighan was tasked with writing a manual for using B that was to be used internally at Bell Labs. + + +main( ) { + extrn a, b, c; + putchar(a); putchar(b); putchar(c); putchar(’!*n’); +} +a ’hell’; +b ’o, w’; +c ’orld’; + + +#Functions, to demonstrate the composition of functions: + +main( ) { + extrn a,b,c,d; + put2char(a,b) ; + put2char(c,d) ; +} +put2char(x,y) { + putchar(x); + putchar(y); +} +a ’hell’; b ’o, w’; c ’orld’; d ’!*n’; diff --git a/B/readme.md b/B/readme.md new file mode 100644 index 0000000..3418c7b --- /dev/null +++ b/B/readme.md @@ -0,0 +1 @@ +this is a hello world program in B programming language diff --git a/javascript/helloworld-dishant.js b/javascript/helloworld-dishant.js new file mode 100644 index 0000000..20a0d26 --- /dev/null +++ b/javascript/helloworld-dishant.js @@ -0,0 +1,16 @@ + + + +
+ +Before the script...
+ + + +...After the script.
+ + + + diff --git a/javascript/readme.md b/javascript/readme.md new file mode 100644 index 0000000..c3e9546 --- /dev/null +++ b/javascript/readme.md @@ -0,0 +1 @@ +hello world program in javacript diff --git a/objective c/helloworld-dishant.m b/objective c/helloworld-dishant.m new file mode 100644 index 0000000..11f647f --- /dev/null +++ b/objective c/helloworld-dishant.m @@ -0,0 +1,15 @@ +/* Hello World in Objective-C. +** Since the standard implementation is identical to K&R C, +** a version that says hello to a set of people passed on +** the command line is shown here. +*/ + +#include