Skip to content

Instantly share code, notes, and snippets.

View setghm's full-sized avatar

Set HM setghm

  • México
  • 04:06 (UTC -06:00)
View GitHub Profile
@setghm
setghm / rockps.asm
Created February 22, 2025 02:37
MASM x86: Rock, paper, scissors game
; Rock, paper, scissors in MASM x86
; setghm 2025
; Macro for print a data string.
prints macro str
lea dx, str
mov ah, 9h
int 21h
endm
@setghm
setghm / print_your_external_ip.c
Last active August 31, 2025 19:20
Print your external IP address in Windows with C
/**
* Print your external IP address on the command line in windows.
*
* By Set HM 2025.
*/
#define WIN32_LEAN_AND_MEAN
#include <stdio.h>
#include <string.h>
#include <stdlib.h>