> For the complete documentation index, see [llms.txt](https://acristea.gitbook.io/bti-suport-seminar/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://acristea.gitbook.io/bti-suport-seminar/seminar-12/fundamente.md).

# Fundamente

## Regiștri de uz general

<img src="https://3764159134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLEuMc3jCaSbqilHud9lY%2Fuploads%2Fum6qFzCT8ZpInblOBtgg%2Ffile.drawing.svg?alt=media&amp;token=cead580b-d833-4eec-818c-a269be7c9f35" alt="" class="gitbook-drawing">

## MEMORIE: Segment, offset, adresă liniară

<img src="https://3764159134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLEuMc3jCaSbqilHud9lY%2Fuploads%2F6lVaLbGv0XEusfefeo8V%2Ffile.drawing.svg?alt=media&amp;token=5d176229-32f6-4a9e-b346-87b48f24cc4a" alt="" class="gitbook-drawing">

## Adresare

<img src="https://3764159134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLEuMc3jCaSbqilHud9lY%2Fuploads%2FUEIDIgIwFkDTPcvUAxTw%2Ffile.drawing.svg?alt=media&amp;token=40fe533b-1464-45f2-b4ec-cf3bfbd32dfb" alt="" class="gitbook-drawing">

## Tipuri de date

```
.model small
.stack 100h
.data  
    zecimal_const dw 64d
    binar_const dw 10000011b
    hex_const DW 1234h
    octal_const dw 170o
    alegere DB 3 DUP(?)
    mesaj DB 'Hello'
    vector db 5 dup(1,3,5,7)
.code
start: 
    mov ax, @data
    mov ds, ax  
    
    mov al, vector[0]
    mov bl, vector[1]
    mov cl, vector[2]
    mov dl, vector[3] 
    
    mov AL, 0005H
    MOV BL, 0002H
    
    ADD AL, BL  
    
    SUB AL, 3h  
    
    MOV AL, [2H]
    
    mov ax,4C00h
    int 21h
end start
```

###

## Instrucțiuni

<img src="https://3764159134-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLEuMc3jCaSbqilHud9lY%2Fuploads%2F5gU4NV8lZG7VL8b81P24%2Ffile.drawing.svg?alt=media&amp;token=05949773-b10c-466f-bf15-d714d3fe8c61" alt="" class="gitbook-drawing">
