首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 汇编编译器的多机。

汇编编译器的多机。

  • 资源大小:9.11 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 汇编 编译器

资 源 简 介

Desenvolvimento de um compilador assembly multi-máquina, criado para compilar usando ANSI C e para ser parte integrante do projeto SOmBRA. Desenvolvimento alpha, exemplo da linguagem abaixo: ``` program teste; char a[256], c[3]; int z; int *x = (int *)eax; // *x == [eax] begin // Pode ser { eax = 0xB8000; // mov eax, 0xB8000 // Mostrando letra a na tela! *x = 0x0F << 8 + "A"; // mov [eax], 0x0F65 end // Pode ser } se não for begin no inicio ``` Funções function teste(int x): int;begin // Podemos usar push(x) ... // Mas não podemos de esquecer de retira-lo caso de retorno! return x;end Código: teste: push ebp ; Salvando ebp mov ebp, esp ; ebp = esp mov eax, [ebp+8] ; return x; pop ebp ; Retomando ebp ret ; retorna último eip

文 件 列 表

ar.h
ar.c
ar.exe
ar.txt
VIP VIP
0.194564s