Skip to content

Instantly share code, notes, and snippets.

View alvanrahimli's full-sized avatar
⌨️
it's all good tho

Alvan Rahimli alvanrahimli

⌨️
it's all good tho
View GitHub Profile
# Dockerfile for article ()
FROM mcr.microsoft.com/dotnet/aspnet:5.0-alpine AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine AS build
WORKDIR /src
COPY ["Api/MyApp.Identity/MyApp.Identity.csproj", "Api/MyApp.Identity/"]
COPY ["Shared/MyApp.Domain/MyApp.Domain.csproj", "Shared/MyApp.Domain/"]
mov ax, 0 ; ax -> 0x0000 or in binary: 0000000000000000
mov ah, 0x56 ; ax -> 0x5600
mov al, 0x23 ; ax -> 0x5623
mov ah, 0x14 ; ax -> 0x1423
mov ax, 1234 ; store decimal number 1234 in ax register
mov bx, 0x235 ; store hex number 0x235 in bx register
mov cx, 't' ; store ASCII code of char 't' in cx register
mov dx, ax ; copy value in ax register to dx register
@alvanrahimli
alvanrahimli / boot_sect.asm
Created July 9, 2021 14:15
Very simple boot sector program
loop: ; Defining new loop
jmp loop ; Jump to loop label to make infinite loop
times 510 -( $ - $$ ) db 0 ; fill 510 bytes with 0s
dw 0xaa55 ; write magic number to last 2 bytes, so BIOS will assume
; this is bootable device