1 / 4

Aula Prática

Aula Prática. Programação em Ponto Flutuante Paulo Maciel. Programação em Ponto Flutuante. Descrição : elabore um programa, utilizando o conjunto de instruções de ponto flutuante do Pentium, que calcule o volume de um cone com raio R=10,00 cm e altura H=30,00 cm.

fancy
Download Presentation

Aula Prática

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Aula Prática Programação em Ponto Flutuante Paulo Maciel

  2. Programação em Ponto Flutuante • Descrição: elabore um programa, utilizando o conjunto de instruções de ponto flutuante do Pentium, que calcule o volume de um cone com raio R=10,00 cm e altura H=30,00 cm.

  3. ; Version : 1.0 ; Created date : 13/06/2006 ; Last update : ; Author : Paulo Maciel ; Description : Exemplo Simples .COM utilizando o ; NASM 0.98. [BITS 16] ; define ger. de cod. de 16 bits [ORG 0100H] ; def. inic. do codigo 100h (COM file) [SECTION .text] ; Section containing code START: mov dx, msg ; carrega ender. da string mov ah,9 ; funçao 9 mostra texto em tela. int 21H ; INT 21H ; corpo do programa mov ax, 04C00H ; função para encerar programa int 21H ; INT 21H. [SECTION .data] ; Secao de dados inic. msg db "Cálculo do Volume do Cone - Float Point Registers - Ex.1!", 13, 10, "$" ;Here's our message raiodd 2.0 altura dd 3.0 [SECTION .bss] ; Secao de var. não-inic. vol resd 2 Programação em Ponto FlutuanteTemplate

  4. Programação em Ponto Flutuante • Informações sobre compilação: • No NASM: nasm nome.asm –f bin –o nome.com (real mode flat model) • Obs: use o td (TurboDebugger) para depurar e visualizar os registradores de ponto flutuantes.

More Related