Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Assembly language/helloworld-dishant.asm
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Assembly language/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HELLO WORLD PROGRAM IN X86 ASSEMBLY LANGUGAE
27 changes: 27 additions & 0 deletions B/helloworld-dishant.b
Original file line number Diff line number Diff line change
@@ -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’;
1 change: 1 addition & 0 deletions B/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this is a hello world program in B programming language
16 changes: 16 additions & 0 deletions javascript/helloworld-dishant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html>

<body>

<p>Before the script...</p>

<script>
alert( 'Hello, world!' );
</script>

<p>...After the script.</p>

</body>

</html>
1 change: 1 addition & 0 deletions javascript/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello world program in javacript
15 changes: 15 additions & 0 deletions objective c/helloworld-dishant.m
Original file line number Diff line number Diff line change
@@ -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 <stdio.h>
#include <objpak.h>
int main(int argc,char **argv)
{
id set = [Set new];
argv++;while (--argc) [set add:[String str:*argv++]];
[set do:{ :each | printf("hello, %s!\n",[each str]); }];
return 0;
}
6 changes: 6 additions & 0 deletions pascal/helloworld-dishant.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#hacktoberfest

program HelloWorld;
begin
WriteLn('Hello, world!');
end.
1 change: 1 addition & 0 deletions pascal/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hello World in Pascal